What is the best way to create a custom “tickle” UIGestureRecognizer?

落爺英雄遲暮 提交于 2019-12-01 08:18:00

I know you hesitate to build it from scratch, but tbh, any other way would feel "hacked together".

Besides, building this particular gesture from scratch will be easy because Ray Wenderlich's gesture recognizer tutorial actual talks about implementing your own custom gesture... Now only that, but he shows you how to implement a tickle gesture!

Here's a link to his tutorial: http://www.raywenderlich.com/6567/uigesturerecognizer-tutorial-in-ios-5-pinches-pans-and-more

The part about the tickle gesture is towards the bottom. Feel free to follow his tutorial and learn how to use it, or you can probably just download his sample code and copy/paste his tickle gesture recognizer class.

Edit: Oops, this question is many months old. Oh well, it has an answer now.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!