Re: -viewDidUnload not always called?
Re: -viewDidUnload not always called?
- Subject: Re: -viewDidUnload not always called?
- From: Fritz Anderson <email@hidden>
- Date: Fri, 14 Oct 2011 14:09:54 -0500
On 14 Oct 2011, at 11:33 AM, David Rowland wrote:
> Well, thank you. If you are interested, here is the companion diagram for view controller loading,
>
> http://drowland.net/iOS Class/View Controller loading.pdf
Perhaps I misunderstand.
If I write
MyViewController * vc = [[MyViewController alloc] initWithNibName: @"aNib"
bundle: nil];
The view controller does not "come from a NIB;" it was instantiated inline. So the answer to your third question is no, and your chart says, "iOS will create a simple view and assign it to the view property of the view controller." In fact, the other branch is taken: "iOS will load the view from the nib."
— F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden