判断当前presentedViewController
2018-03-01 本文已影响25人
今年27
- (UIViewController*)topViewController {
return self.window.rootViewController.presentedViewController;
}
- (UIViewController*)topViewController {
return self.window.rootViewController.presentedViewController;
}