收录日期:2021/01/22 01:00:26 时间:2016-03-29 12:57:09 标签:objective-c,iphone,xcode,orientation

I've set shouldAutorotateToInterfaceOrientation to return 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);
}