UIViewController containment and storyboarding
UIViewController containment and storyboarding
- Subject: UIViewController containment and storyboarding
- From: Roland King <email@hidden>
- Date: Sat, 05 Nov 2011 21:48:42 +0800
Is there any support for UIViewController containment with storyboarding? I've been trying to implement a custom segue between two view controllers which really requires having both of them available and performing animations on both the outgoing and incoming view controller, fading most of the elements of the former out, moving one element of it unfaded to the new view controller whilst fading the other elements of that view controller in. If you've seen the 'pages' app on iOS, the effect is similar to that you get when you select a document for title change, that document moves into place on the edit screen, the old screen fades out, the new one fades in. It's a nice effect.
I think the most supported way to do this is with ViewController containment and transitionFromViewController:toViewController:duration:options:completion: but that requires a view controller with containment support and I've been writing this app using storyboarding and can't find a way to nicely use a containment view controller and tell it to segue a child VC.
I also tried to just transition the two view controllers but that's proved challenging. If I use a crossfade then my 'moving view' either fades out if I move it on the old VC or fades in if I move it on the new VC, I want it to animate across the two seamlessly. The best I've managed so far is to fade out all but that one moving element of the first view controller before displaying the new one, do a transition with no animation, then have the new VC fade in the rest of its elements in when it appears. It's a lot of code and it still doesn't look very nice. _______________________________________________
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