We have received a HUGE project from outsourcing that we are trying to \"repair\". There are hundreds of view controllers within the project. Our goal is to
Does the app use Navigation controllers to display the View Controllers? If so, you can use the NavigationController's methods to report the current controller:
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[self reportNewController:viewController];
}
- (void) reportNewController:(UIViewController *)viewController
{
NSString *name = viewController.title;
NSLog(@"Name is %@",name);
}