2010-10-14 59 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

然後,只需刪除您不希望以支持基於的那些在設備類型上。