• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Initializing a view controller...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Initializing a view controller...
      • From: Phil Hystad <email@hidden>
References: 
 >Initializing a view controller... (From: Phil Hystad <email@hidden>)

  • Prev by Date: Initializing a view controller...
  • Next by Date: Re: Initializing a view controller...
  • Previous by thread: Initializing a view controller...
  • Next by thread: Re: Initializing a view controller...
  • Index(es):
    • Date
    • Thread