How can I get any controller in UINavigationController?
I can easily get top controller using the property topViewController; How can i get for example top -1 ?
How can I get any controller in UINavigationController? I can easily get top controller
Share
There is a property of UINavigationController namely “viewControllers” which will work as follows:
And now you can access any view controller from the returned array!