I am doing an application that every time an UIViewController finishes loading, there is a thread take an screen shot of the current visible ViewController. I have more than 40 ViewControllers. How can I detect a ViewContrller finished loading. I do not want to add that function for each "ViewDidLoad". Thank you.
The most obvious and maintainable way to do this would be to create your own subclass of UIViewController that does this in ViewDidLoad, and then change all your view controllers to be instances of this new subclass.