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%23//apple_ref/doc/uid/TP40007457-CH101-SW19>

        — F

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to