• 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: Docs warning unclear
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Docs warning unclear


  • Subject: Re: Docs warning unclear
  • From: WT <email@hidden>
  • Date: Mon, 29 Jun 2009 01:19:58 +0200

On Jun 29, 2009, at 1:06 AM, DKJ wrote:

Well, it's unclear to me anyway.

<< Warning: If the view belonging to a view controller is added to a view hierarchy directly, the view controller will not receive this message. If you insert or add a view to the view hierarchy, and it has a view controller, you should send the associated view controller this message directly. Failing to send the view controller this message will prevent any associated animation from being displayed. >>
(In the description of UIViewController viewDidAppear: method)


How is a view controller added to a hierarchy "directly"? How would one be added "indirectly"?

dkj

You're not reading the warning carefully enough. Note that it's referring to adding a *view*, not a *view controller*, to a *view* hierarchy. You add a view to a view hierarchy "directly" by using the UIView's -addSubview: method. You should take some time to read the "Window and Views" section of


http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/iPhoneAppProgrammingGuide.pdf

to understand how to manipulate the view hierarchy.

Wagner
_______________________________________________

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


References: 
 >Docs warning unclear (From: DKJ <email@hidden>)

  • Prev by Date: Re: Objective C Compiler Settings
  • Next by Date: Re: GC pros and cons
  • Previous by thread: Docs warning unclear
  • Next by thread: 10.4 & 10.5 compatibility
  • Index(es):
    • Date
    • Thread