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