Search code examples
iphoneobjective-cxcodeios5

adding swipe gesture to view controllers on storyboard not working


I am pretty new to this so i was following this tutorial.

www.youtube.com/watch?v=5u1-DGiUhXU

I have 4 view controllers with images etc. And i have done exactly as per this video. My problem is, if i tap, drag do anything nothing happens. I am just stuck at main screen. I have tried changing push to model but it don't work either.

Any Ideas?


Solution

  • You should set your imageViews UserInteractionEnabled = YES to enable touches cause it is =NO by default. Just solved similar problem this way.

    EDIT: I've just repeated the actions described in video and everything works fine! You really should follow the video guide carefuly! P.S. The swipe gesture should be a quick move from the left side of screen to the right.