UIImageView rotation (NOT the image, but the view)
- by Kuko
Hi.
How do I rotate the ImageView ... i'm trying to use landscape mode, and have a problem with accelerometer moving the image ...
Because when I work in portrait mode the x of accelerometer is the same as the x of the image ... But when I work landscape, the x of accelerometer is the y of the image, because the ImageView autorotates with the parent View.
When I rotate the image with CGAffineTransformMakeRotation(M_PI/2), it rotates only the image in it's ImageView... and the x,y sides stays untouched ...
Is there any way to make own class which will extend UIImageView where I will swap the x,y sides of a UIImageView ?
Or is there some way to rotate the UIImageView, and not only the image in it?