Updated to Xcode 7.0.1 and Project now has problem

2019-03-31 01:29发布

So I uploaded my Xcode 6.1 build to iTunes Connect and the app was approved. Now i'm trying to update the app and I updated to Xcode 7.0.1 and Xcode is giving me problems stating:

(For app I used storyboards and Objective-C)

warning: All interface orientations must be supported unless the app requires full screen.

warning: A launch storyboard or xib must be provided unless the app requires full screen.

- (NSUInteger)supportedInterfaceOrientations {

return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}

What's the new supported interface orientation for iOS 9?

2条回答
霸刀☆藐视天下
2楼-- · 2019-03-31 02:27

If your app supports multi tasking you need to support all orientations (Portrait up, Portrait Down, Landscape Left, Landscape Right) and a also Launch Screen xib/storyboard.

If you are not interested, you can opt-out by specifying UIRequiresFullScreen key in your info.plist and setting the boolean value to YES. (Read this answer for more about this option)

查看更多
闹够了就滚
3楼-- · 2019-03-31 02:27

Go to Targets -> General, Deployment Info and check all for device orientation and the warning will go away e.g. for an iPad only app you have to tick all orientations, in your view controllers then you can override the orientations.

查看更多
登录 后发表回答