I'm trying to figure out how best to handle the appDelegate methods for multitasking changes and I want to consider any possible behavior by the user.
What happens if you have a lot of ivar initializations and view setups going on in your view controller's method:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
And while this method is half-way through, the user quits your app. But, because it supports multi-tasking, when they open it back up again, is the above init method going to just continue where it left off?
If so, is this the reason why it is better to place initializations in the above method rather than in viewDidLoad
since, if you quit the app while viewDidLoad
is running, it would seem that viewDidLoad
does not pick up where you left off if you then run the app again.