• 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: viewWillAppear not called with UINavigationController containment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: viewWillAppear not called with UINavigationController containment


  • Subject: Re: viewWillAppear not called with UINavigationController containment
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 29 Dec 2011 07:58:44 -0800

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 = email@hidden, 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 (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: 
 >Re: viewWillAppear not called with UINavigationController containment (From: Matt Neuburg <email@hidden>)
 >Re: viewWillAppear not called with UINavigationController containment (From: Roland King <email@hidden>)

  • Prev by Date: AVPlayerLayer on Lion will only play one movie then zaps super layer
  • Next by Date: Re: MVC Theory Question
  • Previous by thread: Re: viewWillAppear not called with UINavigationController containment
  • Next by thread: Re: viewWillAppear not called with UINavigationController containment
  • Index(es):
    • Date
    • Thread