I'm creating a UIViewController subclass, and I create it with a custom init function, initWithImages:(NSArray *)images, that then returns the view controller for use.
I'm confused however what I'm supposed to do in the init versus the viewDidLoad, viewWillAppear, etc. functions. In this init function I set up the image view, a caption label and give it gesture recognizers, but are those things that should only be done when it loads or appears?
Should the init be as small as possible? What do I put in each is basically my question?
I'm using the UIViewControllers with a UIPageViewController so it's important that even with a bunch of view controllers in the page view controller that memory isn't used absurdly, so I want to make sure I'm doing this right.