开发者

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);
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜