2010-10-14 23 views

回答

0

您可以在Info.plist文件中拥有不同的基于设备的设置。

我发现了一个example在那里谈论过在风景模式下的应用的启动(取决于设备)是这样的:

<key>UIInterfaceOrientation</key> 
    <string>UIInterfaceOrientationPortrait</string>  
<key>UIInterfaceOrientation~ipad</key>  
    <string>UIInterfaceOrientationLandscapeLeft</string> 

随着第一标签指的iPhone和〜iPad的一个指的的iPad。不知道这个链接是否会对你有所帮助,但是这个(我的意思是Info.plist方式)绝对是你的选择。

希望它有帮助。

乔瓦尼

0

您可以随时使用此方法。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
     return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); 
} 
0

这是一个相当古老的问题,苹果已经更新XCode来处理这种特定情况。这些步骤在XCode 8.2.1中进行了测试。

在的plist编辑器,展开了两个形式因素支持的接口(电话/ Touch是第一个):

enter image description here

然后,只需删除您不希望以支持基于的那些在设备类型上。