Re: Initializing a view controller...
Re: Initializing a view controller...
- Subject: Re: Initializing a view controller...
- From: Fritz Anderson <email@hidden>
- Date: Mon, 10 Jan 2011 10:42:40 -0600
On 10 Jan 2011, at 9:17 AM, Phil Hystad wrote:
> Is there a proper way to initialize a view controller. So far, I have been doing this in the application delegate by calling calling an initialize method ( i.e. [viewController initialize]) in application:didFinishLaunchingWithOptions: method (prior to the view being added to the window and the window made visible).
I first wrote a brief essay on what to do, where, depending on whether you instantiate programmatically or in a NIB. But why not refer you to a better explanation than I can piece together in five minutes?
View Controller Programming Guide for iOS.
<http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/Introduction/Introduction.html>
Particularly: Understanding the View Management Cycle
<http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/BasicViewControllers/BasicViewControllers.html#//apple_ref/doc/uid/TP40007457-CH101-SW19>
— 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