How to check UIViewController view is visible iOS

Solution:

Use the below code to check the viewcontroller's view is visible.


        if (ViewController.isViewLoaded && ViewController.view.window) {
// if visible to check the view
}

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift