We got the HUGE project from outsourcing, which we are trying to βrestoreβ. There are hundreds of controllers in the project. Our goal is to easily determine which class we are currently viewing on the device.
Our solution (which did not work, therefore, the SO question) follows.
Override the viewDidAppear UIViewController method through the category using this:
-(void)viewDidAppear:(BOOL)animated { NSLog(@"Current View Class: %@", NSStringFromClass(self.class)); [self viewDidAppear:animated];
This category will be placed in the .pch project.
This does not require the addition of additional code to hundreds of view controllers and is easy to turn on and off. This did not work because, as we now know, meme , you are not just redefining the existing method through the / meme category.
What are we missing?!?
ios objective-c uiviewcontroller nslog
adamweeks
source share