How do I prevent an iPhone background image from rotating when the device orientation changes?
I've set shouldAutorotateToInterfaceOrientation
to return开发者_StackOverflow社区 to YES for orientation, but I noticed as the iPhone rotates the background rotates as well which is a UIImageView
. How do I have the background fixed so it doesn't rotate?
this seemed to do the trick. i got everything to be fixed in landscape mode.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
精彩评论