How to detect Swipe Gesture in iOS?

前端 未结 3 465
时光取名叫无心
时光取名叫无心 2020-11-28 07:20

In my iPhone app, I require to recognize the swipe gesture made by the user on the view.

I want the swipe gestures to be recognized and perform a function on swipe.<

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 08:15

    Use the UISwipeGestureRecognizer. Not much else to say really, gesture recognizers are easy. There are WWDC10 videos on the subject even. Sessions 120 and 121. :)

提交回复
热议问题