iPhone を横方向に回転させた時に検知する方法のメモです。 -(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)FromInterfaceOrientation { if(FromInterfaceOrientation == UIInterfaceOrientationPortrait){ // 横向き } else { // 縦向き } } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } shouldAutorotateToInterfaceOrientation メソッドで YES を返すようにすると回転時に以下のメソッドが実行されます。