私は持っている
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
info.plist で、検索を行い、すべてのインスタンスshouldAutorotateToInterfaceOrientation
を returnに設定しましたYES
。しかし、iPhone では上下逆さまがサポートされていないかのように動作します。UpsideUp の縦向きの作品、Landscapes の作品、Updsidedown は横向きの作品です。なんで?
iPad はどの向きでも問題なく動作します。そして、彼らは.xibsを共有します
アップデート
私はそれ以来追加しました
- (BOOL)shouldAutorotate {
return YES;
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
既存のすべてのインスタンスの後shouldAutorotateToInterfaceOrientation
、まだ愛がない.
iOS 4.3をターゲットにしていますが、シミュレータと物理デバイスは iOS 6を実行しています