我的 iOS 应用程序正在横向运行!我的 viewController xib 文件设置为横向我还通过所有我可以休息的代码强制横向模式!我的观点仍然是纵向的! 在模拟器和设备上的结果相同!不同 Xcode 版本的相同结果
我已经关注了:https://developer.apple.com/library/ios/technotes/tn2244/_index.html
最佳答案
在 appdelegate.m 文件的 didFinishLaunchingWithOptions 方法中,添加以下行:
self.window.rootViewController = self.viewController;
关于IOS- View 在横向应用程序中定义但以纵向模式运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26603332/