Perché non provare a chiamare il metodo shouldAutorotate e vedere quale valore BOOL viene restituito?
Non ho provato a cercare il blocco UIOrientation. Ma in cima alla mia testa, è così che ci proverei.
if([self shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationLandscapeLeft])
NSLog(@"Rotates LandscapeLeft");
if([self shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationLandscapeRight])
NSLog(@"Rotates LandscapeRight");
if([self shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationPortrait])
NSLog(@"Rotates Portrait");
if([self shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationPortraitUpsideDown])
NSLog(@"Rotates PortraitUpsideDown");
Speriamo che questo risolva il problema.
fonte
2011-07-13 15:18:58
possibile duplicazione di [orientamento del dispositivo iOS che ignora il blocco dell'orientamento] (http://stackoverflow.com/questions/4574693/ios-device-orientation-disregarding-orientation-lock) – CRABOLO