コードによる回転の制御 どうもiOS6あたりから制御方法が変わったらしい。 それまではshouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientationメソッドで制御していたが、今はふたつのメソッドで制御するぽい。 //ここで回転していいかの判別をする - (BOOL)shouldAutorotate { if (/* なにがしかの回転していいかの判定処理 */) { return YES; } return NO; } //どの方向に回転していいかを返す(例ではすべての方向に回転OK) - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll; }