私のアプリケーションの大部分は回転をサポートしていません。サポートされている向きでは、ポートレートのみが選択されています。アプリケーションが使用する UIViewController サブクラスには、次のものがあります。
-(BOOL)shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations {
NSLog(@"supported?");
return UIInterfaceOrientationMaskPortrait;
}
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
NSLog(@"preferred");
return UIInterfaceOrientationPortrait;
}
向きをサポートする UIViewController サブクラスには、次のものがあります。
-(BOOL)shouldAutorotate {
return YES;
}
-(NSUInteger)supportedInterfaceOrientations {
NSLog(@"supported?");
return UIInterfaceOrientationMaskAll;
}
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
NSLog(@"preferred");
return UIInterfaceOrientationPortrait;
}
ただし、私のアプリケーションは、これを含むどのビューでも回転しません。ここで思い通りに回転させるにはどうすればよいですか?