I’ve got an UIImageView as a background image for my application, which, like a helicopter in distress, autorotates. The problem is when the orientation autorotates my image gets shifted all over the place and I don’t like it. Since it’s a simple texture I figure the user would prefer to have it stay in its place, and not autorotate. What I mean by this is that I would like the image to stay full screen, and when the user rotates the phone the image is just rotated 90 degrees so it appears the image is static with the phone, not the rest of the application.
Share
You can try implementing the
willAnimateRotationToInterfaceOrientation:duration:method in your view controller and rotating theUIImageViewin the opposite direction.The code below is from the top of my head, I can’t guarantee that it will work: