我需要一种方法来知道用户何时改变方向......
我努力了
-(BOOL) shouldAutorotate { //never called
UIInterfaceOrientation toInterfaceOrientation = [[UIDevice currentDevice] orientation];
if(toInterfaceOrientation == UIInterfaceOrientationPortrait)
//a code here
return YES;
}
我如何知道用户何时更改 iPad 的方向?