A question about UIEvent
My question is is it possible to tell from an UIEvent object whether it is a tap touch or a sweep touch ? Have checked the documentation, UIEvent has type and subtype prope开发者_JAVA百科rties. But their possible values seem to only differentiate between tap and device motion. The subtype values also seem to only indicate motion subtypes.
Wish to tell the difference between a single tap and a sweep tap. Hope that somebody could help ...
You can use GestureRecognizer.
精彩评论