Logging the class name of all UIViewControllers in a project
问题 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 easily determine which class we are currently looking at on the device. Our solution (which didn't work, hence the SO question) follows. Override the viewDidAppear method of UIViewController via a category with this: -(void)viewDidAppear:(BOOL)animated { NSLog(@"Current View Class: %@", NSStringFromClass(self.class)); [self viewDidAppear