Created
March 22, 2016 08:55
-
-
Save CaliosD/51608f0656b4fbbe318a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)isModal { | |
if([self presentingViewController]) | |
return YES; | |
if([[self presentingViewController] presentedViewController] == self) | |
return YES; | |
if([[[self navigationController] presentingViewController] presentedViewController] == [self navigationController]) | |
return YES; | |
if([[[self tabBarController] presentingViewController] isKindOfClass:[UITabBarController class]]) | |
return YES; | |
return NO; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment