2012-05-12 32 views
0

因此,我有一個ios應用程序,並且使用接口構建器和xcode構建了它。我使用界面生成器在水平視圖中構建它,因爲這是我想要的應用程序。我也做了支持的意見風景左右,我編輯了info.plist使其水平打開。如何使xcode ios應用程序不能垂直查看

但是,當我建立並去它橫向打開iphone模擬器,但它顯示,如果它是垂直。

這裏的一些截圖: 我希望它是什麼樣子: http://www.sendspace.com/file/4ct4b0

它實際的樣子: http://www.sendspace.com/file/fayjqj

我怎麼能拿它來打開像我想要?

回答

1

你必須使用shouldAutorotateToInterfaceOrientation允許取向也在你執行UIViewController

- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { 
     return YES; //or UIInterfaceOrientationIsLandscape(interfaceOrientation) for just landscape 
} 

另外,如果您有更多的問題,看看在鏈接SO問題,這種「過時」的問題: iPhone app in landscape mode, 2008 systems

+0

thx很多!!!!!!! – burkel

相關問題