Что заставляет строку состояния перекрывать вид?

Любая идея, почему строка состояния перекрывают вид после presentModalViewController->dismissModalViewControllerAnimated

Xcode: 4.2 SDK: цель развертывания iOS 5: 3.2 ARC: ON

1 ответ

- (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:
}

исправить эту проблему, но я не понимаю, почему.

Другие вопросы по тегам