Quote:
Originally Posted by jfalexvijay
Hi,
In my application, I am having following UIViewControllers;
HomeViewController
FirstViewController
SecondViewController, and etc...
My question is; How can I find out whether SecondViewController is a current UIViewController or not ?
|
If your app is based on a navigation controller, the navigation controller includes properties that give you what you want.
viewControllers gives you an array of all the view controllers on the view controller "stack" (the front view controller and any view controllers that are covered by the front view controller, down to the root view controller.)
visibleViewController gives you a pointer to the current frontmost view controller.