RootViewController.mm
[c]
// Override to allow orientations other than the default portrait orientation.
// This method is deprecated on ios6
– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
//縦画面対応
return UIInterfaceOrientationIsPortrait(interfaceOrientation);
//return UIInterfaceOrientationIsLandscape( interfaceOrientation );
}
// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
– (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
//縦画面対応
return UIInterfaceOrientationMaskPortrait;
//return UIInterfaceOrientationMaskAllButUpsideDown;
#endif
}
– (BOOL) shouldAutorotate {
return NO;
}
[/c]