向きが横向きに設定されており、iPhone シミュレーターがアプリを読み込んで横向きモードで起動します。iOS6以降、上記のコードは写真を横向きモードではなく縦向きモードでロードします。お知らせ下さい。
編集:問題はここから始まります:
- (void)viewDidLoad {
[super viewDidLoad];
[self.view setBackgroundColor:[[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"480x320-background.png"]]];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)anInterfaceOrientation{
return anInterfaceOrientation==UIInterfaceOrientationLandscapeLeft || anInterfaceOrientation==UIInterfaceOrientationLandscapeRight;
}