mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 07:57:01 +00:00
Remove some pre-iOS 5 checks that are not needed any more
This commit is contained in:
parent
4ac8c6e7a8
commit
f6f92d2027
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user