はい、まったく問題なく、xcode 4.5 を使用して iOS 4.3 から iOS 6.0 をサポートできます。
そして、ios 6のオリエンテーションのために、 @ Mayur Jの回答に投稿されているように、いくつかのコードを別の方法で配置する必要があるなど、いくつかの回避策を実行する必要があります。
UINavigationController
または、UIPopoverViewController
、 、 などの必要なコントローラーのカテゴリを追加して、UIImagePickerViewController
以下のように ios 6.0 でサポートされている向きを返すだけです。
.h ファイル
#import <UIKit/UIKit.h>
@interface UIPopoverController (UIPopoverController_Orientation)
-(NSUInteger) supportedInterfaceOrientations;
@end
.m ファイル
#import "UIPopoverController+UIPopoverController_Orientation.h"
@implementation UIPopoverController (UIPopoverController_Orientation)
-(NSUInteger) supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
@end
ここではUIInterfaceOrientationMaskLandscape
、横向きのみをサポートしているため、つまり、アプリを横向きモードのみに制限しています。
これがあなたを助けることを願っています。
ハッピーコーディング:)