1

I am struggling to reproduce the "sibling to sibling navigational transition" between viewControllers.

I have a UITabBar with 3 items. I can make the VC switch animated with something like

CATransition *transition = [CATransition animation];
transition.duration = 1.0;
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromRight // or FromLeft depending on context 
[viewController.view.layer addAnimation:transition forKey:nil];

But in this case the fromViewController disappears instantly, and the app background is shown.

I could take a screenshot of the fromViewController and insert it somewhere on the toViewController but I would also have to animate it, I suspect it would ends messy.

What you be the simpliest way to reproduce this effect (preferably without using a large horizontal scrollview) ?

kursus
  • 1,396
  • 3
  • 19
  • 35

0 Answers0