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 (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