Remove some pre-iOS 5 checks that are not needed any more

This commit is contained in:
Andreas Linde 2012-10-19 00:34:34 +02:00
parent 4ac8c6e7a8
commit f6f92d2027

View File

@ -146,7 +146,7 @@
UIWindow *visibleWindow = [self findVisibleWindow];
if (parentViewController == nil && [UIWindow instancesRespondToSelector:@selector(rootViewController)]) {
if (parentViewController == nil) {
parentViewController = [visibleWindow rootViewController];
}
@ -170,12 +170,10 @@
_navController.modalPresentationStyle = _modalPresentationStyle;
if (parentViewController) {
if ([_navController respondsToSelector:@selector(setModalTransitionStyle:)]) {
_navController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
}
_navController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
// page sheet for the iPad
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad && [_navController respondsToSelector:@selector(setModalPresentationStyle:)]) {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
_navController.modalPresentationStyle = UIModalPresentationFormSheet;
}