Reputation: 2235
My Application has around 4 UIViewControllers. Is it possible to find the current UIViewController?
Upvotes: 2
Views: 1636
Reputation: 2425
NSArray *viewContrlls=[[self navigationController] viewControllers];
[viewContrlls lastObject];
Upvotes: 7