- (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:
}
исправить эту проблему, но я не понимаю, почему.