سؤال

I have inherited UIGestureRecognizer as mentioned in apple's documentation But here it detects only upAndDown swipe i want to detect leftAndRight swipe also(like a ticle) with the same class and i know how to detect it but don't know how to invoke different selectos for different actions I mean like in UISwipeGestureRecognizer do for left and right swipes

هل كانت مفيدة؟

المحلول

You can use the gesture recognizer object's direction property.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top