Guest User

Untitled

a guest
Dec 11th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. + (UIViewController *)visibleViewController
  2. {
  3.     UINavigationController *currentNavigationController = (UINavigationController *)UIApplication.sharedApplication.delegate.window.rootViewController;
  4.     return currentNavigationController.topViewController;
  5. }
Add Comment
Please, Sign In to add comment