Xcode5でSupported Interface Orientationsを指定する
Xcode4までは、プロジェクト情報のSummaryというところにSupported Interface Orientationがあり、端末の対応する向きを変えるにはそこを設定すればよかったのですが、Xcode5になって下記の場所になったようです。
昔は向きの絵があってその中から選べたのですが今回から単なる文字列に…なんか退化してないか?
後は、RootViewController.mmも下記のように変えるのは変わらず。
// Override to allow orientations other than the default portrait orientation. // This method is deprecated on ios6 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // modify to portrait // return UIInterfaceOrientationIsLandscape( interfaceOrientation ); return UIInterfaceOrientationIsPortrait(interfaceOrientation); } // For ios6, use supportedInterfaceOrientations & shouldAutorotate instead - (NSUInteger) supportedInterfaceOrientations{ #ifdef __IPHONE_6_0 // modify to portrait //return UIInterfaceOrientationMaskAllButUpsideDown; return UIInterfaceOrientationMaskPortrait; #endif }