Re: viewWillAppear not called with UINavigationController containment

2011-12-30 Thread Curt Clifton
On Dec 27, 2011, at 5:51 AM, Roland King wrote: // tell each of the controllers we're adding that they are being added and prepare the ones being removed for removal for( UIViewController *controller in appearingControllers ) [ self addChildViewController:controller

Re: viewWillAppear not called with UINavigationController containment

2011-12-30 Thread Zac Bowling
I created a sample project this year at WWDC to help diagnose UIViewController containment that may be useful. https://github.com/zbowling/ContainerTest It hosts a view controllers and just NSLogs a ton of events that happen like viewWillAppear and rotation calls. I wrote it to track down a

Re: viewWillAppear not called with UINavigationController containment

2011-12-29 Thread Matt Neuburg
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

Re: viewWillAppear not called with UINavigationController containment

2011-12-28 Thread Matt Neuburg
On Wed, 28 Dec 2011 08:05:58 +0800, Roland King r...@rols.org said: I'll go put it back the way it was and see if there's something else I missed. The whole thing is being triggered in a viewdidload method, wonder if that's too early because the container VC doesn't have an on screen view.

Re: viewWillAppear not called with UINavigationController containment

2011-12-28 Thread Roland King
Yes .. mine! 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

viewWillAppear not called with UINavigationController containment

2011-12-27 Thread Roland King
Wrote my first UINavigationController container yesterday, appeared to work just fine. It's a particularly dumb one which displays the views from two contained UIViewControllers side by side. I'm using it to show on one page what on my iPhone app shows on two pages, by putting the two VCs

Re: viewWillAppear not called with UINavigationController containment

2011-12-27 Thread Matt Neuburg
On Tue, 27 Dec 2011 21:51:55 +0800, Roland King r...@rols.org said: Wrote my first UINavigationController container yesterday, appeared to work just fine. It's a particularly dumb one which displays the views from two contained UIViewControllers side by side. I'm using it to show on one page

Re: viewWillAppear not called with UINavigationController containment

2011-12-27 Thread Roland King
That's what I had originally, addchildvc, add to the subview, call didmove. I changed it last night when it wasn't working. I'll go put it back the way it was and see if there's something else I missed. The whole thing is being triggered in a viewdidload method, wonder if that's too early