How to check if a specific UIViewController’s view is currently visible? [duplicate]

After doing some research, I found this answer in a different question posted on here…This seems to be the best way…

The view’s window property is non-nil if a view is currently visible, so check the main view in the view controller:

if (viewController.isViewLoaded && viewController.view.window){
    // viewController is visible
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)