If I push view controllers and/or present modal view controllers on a UINavigationController, how can I find out what is the top most UIViewController?
UINavigationController
UIViewController
NSArray *viewContrlls=[[self navigationController] viewControllers]; [viewContrlls lastObject];