Re: rotate a UIImage help
I haven't studied your code in too much detail but place a draw function after the transform to see if it's working.
Note that if you use orientation I don't think you have to rotate it manually. Since drawing ir a different orientation for the UI compared to some other image libraries they try to make it reasonable to do. Do a search of the example code for orientation or transform.
Once again try drawing before and after so you can see what happens.
You may have to draw and capture it.
Note that you'll have leaks since you've allocated a couple of objects but haven't released them.
|