Search code examples
iosuiviewcontrollercustom-transition

iOS - 'Pan' navigation flow with Custom Transitions


I'm trying to use iOS7's custom transitions in order to let the user navigate between view controllers through a kind of 'pan' effect.

As depicted here:

enter image description here

I need the background pattern to continue also outside the vc's bounds, so that when the user moves from vc1 to vc2 all the background visible between the vcs translates too.

Any hint is really appreciated.

Thanks, DAN


Solution

  • Have a large UIImageView with the image in the transitionContext.containerView, and change its origin as the pan gesture progresses?