How can I set a UITapGestureRecognizer's timeout threshold?
I'm using a UITapGestureRecognizer
in my iPad app and I want to change the duration it inter开发者_Python百科prets as being short enough for a tap. I want my tap to be recognised on finger-up however long I hold down my finger. How can I achieve this?
I don't believe you can override the gesture duration the way you want to. However you can use UILongPressGestureRecognizer, which does exactly what you seem to need.
精彩评论