面向IPad启动横向应用的一个问题.我开发了IPhone应用程序,后来我移植到IPad.
我已经在info.plist中设置了关于方向的设置
[ UISupportedInterfaceOrientations~ipad ] to support all orientation UIInterfaceOrientationPortrait , UIInterfaceOrientationPortraitUpsideDown , UIInterfaceOrientationLandscapeLeft , UIInterfaceOrientationLandscapeRight.
Run Code Online (Sandbox Code Playgroud)
但是当我在横向模式下启动IPad应用程序时,它总是以potrait模式启动.
沿着这个
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{ return YES; }
Run Code Online (Sandbox Code Playgroud)
帮助我,如果我错过了这个...
谢谢,
萨加尔