2013-05-07 103 views
0

我有一個iPhone應用程序,其已經建立在較早的XCode iOS 5及支撐Landscape left , Landscape right and portrait (bottom home)並從info.plist - >support interface orientation - >1 landscape(right home button) 2 landscape(left home button) 3 portrait (bottom home)流動開口應用的iPhone模擬器橫向縱向

手段模擬器將打開landscape(right home button)默認情況下。

但問題是當我在模擬器中運行應用程序iOS 5.0 - >landscape(right home button)默認打開。

,但是當我在模擬器iOS 6.1運行的應用程序 - >Portrait mode opens by default.

爲什麼的iOS 6.1模擬器開啓人像模式時,我已經設置landscape(right home button)默認打開。

是否有任何問題與基本的SDK或任何..因爲我在早期版本的iOS上構建。

回答

0

接口方位的處理方式中的iOS 6的兩個主要方法改爲看看情況如下:

-(NSUInteger)supportedInterfaceOrientations 

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation 

UIViewController這兩個聲明。

我建議你閱讀View Controller Programming Guide - Supporting Multiple Interface Orientations

+0

雅做了同樣的...在'supportedInterfaceOrientations - > UIInterfaceOrientationLandscapeLeft?| UIInterfaceOrientationLandscapeRight | UIInterfaceOrientationMaskPortrait'和'preferredInterfaceOrientationForPresentation {UIInterfaceOrientationLandscapeRight}',但仍然默認ios 6.1模擬器打開縱向視圖 – user2353519 2013-05-07 06:43:39