Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个横向模式的 iPad 应用程序,该应用程序只能在 iOS5 及以下版本下运行良好。在 iOS6 上,第二个屏幕(登录屏幕)突然变成纵向模式。我应该检查哪些参数?
检查以下方法。
// 以上需要ios6
- (BOOL)shouldAutorotate { return NO; // YES or NO as per your requirement } - (BOOL)supportedInterfaceOrientations { return UIInterfaceOrientationLandscapeRight|UIInterfaceOrientationLandscapeLeft; }