知道状态栏在presentModalViewController->dismissModalViewControllerAnimated
Xcode:4.2 SDK:iOS 5 部署目标:3.2 ARC:ON
答案 0 :(得分:0)
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
UIViewController* currentViewController = [self getCurrentViewController];
return [currentViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
更改为:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
UIViewController* currentViewController = [self getCurrentViewController];
return [currentViewController canRotate]; // the implement is exactly as same as shouldAutorotateToInterfaceOrientation:
}
解决了这个问题,但我不明白为什么。