The root view controller is simply the view controller that sits at the bottom of the navigation stack. You can access the navigation controller’s array of view controllers through its viewControllers property . To access the root view controller, we ask for the first item of the array of view controllers.
Read moreHow do I open ViewController from AppDelegate?
Navigate From AppDelegate.
Read moreHow do I use Uiviewcontroller?
There is no built-in way to do it. While you can get around it by adding a IBOutlet on the UIView and connecting these in Interface Builder, this is not recommended. The view should not know about the view controller. Instead, you should do as @Phil M suggests and create a protocol to be used as the delegate.
Read moreHow do I get topmost ViewController?
In addition, you can check for UINavigationController and ask for its topViewController or even check for UITabBarController and ask for selectedViewController . This will get you the view controller that is currently visible to the user.
Read moreHow do I view ViewController?
To present ViewController which works with XIB file you can use the following example:
Read more