mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-01 14:20:58 +00:00
Remove some pre-iOS 5 checks that are not needed any more
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user