相关疑难解决方法(0)

推出面向IPad的横向应用

面向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)

帮助我,如果我错过了这个...

谢谢,

萨加尔

iphone ipad

6
推荐指数
3
解决办法
3万
查看次数

标签 统计

ipad ×1

iphone ×1