iOS判断控制器是否已经显示
2017-08-29 本文已影响8人
黎希
- (BOOL)isCurrentViewControllerVisible:(UIViewController *)viewController {
return (viewController.isViewLoaded && viewController.view.window);
}
- (BOOL)isCurrentViewControllerVisible:(UIViewController *)viewController {
return (viewController.isViewLoaded && viewController.view.window);
}