문제

I'm doing a custom slide in transition on a modal view controller. I have a big dimiss button on the modal view, but I can't press it and dismiss the view until the transition animation is completely finished.

Is it possible to enable userInteraction on the views elements during the transition?

Thanks

도움이 되었습니까?

해결책

Figured it out. I had this line at the end of the animation:

    [transitionContext completeTransition:YES];

No user interaction is allowed before the "completeTransition:YES" has been called.

Called it straight away and it works like a charm.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top