How to tell if UIViewController's view is visible
参考: http://stackoverflow.com/questions/2777438/how-to-tell-if-uiviewcontrollers-view-is-visible
if (viewController.isViewLoaded && viewController.view.window) {
// viewController is visible
}
参考: http://stackoverflow.com/questions/2777438/how-to-tell-if-uiviewcontrollers-view-is-visible
if (viewController.isViewLoaded && viewController.view.window) {
// viewController is visible
}