how to make custom gestures in ios

爷,独闯天下 提交于 2019-12-11 03:53:52

问题


is it possible to make custom gestures in iOS such as a zigzag, or a other lines types? and can one link any action to a gesture. if you know an answer, or a link to an answer or exlanation, please share ... thanks


回答1:


It is possible to create your own gesture recognizers. You can look at this section of the Event Handling Guide for iOS which gives information as to how you can build your own custom subclass.

There are several examples on the net one of which is this.



来源:https://stackoverflow.com/questions/6560796/how-to-make-custom-gestures-in-ios

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