2012-04-04 4 views

ответ

5

Написать это в UIViewController:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) 
     return UIInterfaceOrientationIsPortrait(interfaceOrientation); 
    else 
     return UIInterfaceOrientationIsLandscape(interfaceOrientation); 
} 
+0

Ммм Я видел этот userInterfaceIdiom раньше. Просто никогда не думал, что так будет. Удивительно, спасибо –

Смежные вопросы