On Dec 28, 2011, at 5:49 PM, Roland King wrote:

> So I found that it's almost impossible NOT to get viewWillAppear and all the 
> other messages in perfect order for every view every single time. As long as 
> you call addChildViewController and didMoveToParent (either bracketing the 
> add of the VC's view or not, depending on whether you are actually adding the 
> subview at that time or deferring it to later as you would with say a 
> tabviewcontroller type container) and the reverse, you get the calls. The 
> only way I could find NOT to get them is to mess about adding and removing 
> subviews in layoutSubviews of the custom container view controller's view.

I believe that's what I was referring to when I use the word "skanky"...

Always worth remembering: It's a framework. Use by it by letting it use you. 
When you're told to do a certain dance, just do the dance. What my example 
tries to do is show you exactly what the dance is supposed to look like:

<https://github.com/mattneub/Programming-iOS-4-Book-Examples/tree/master/convertedToIOS5/p476containerController>

m.

--
matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com


_______________________________________________

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