How to correctly subclass UIGestureRecognizer

谁说胖子不能爱 提交于 2019-11-26 23:18:11

问题


I have gone through the documentation: https://web.archive.org/web/20130309051214/http://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/GestureRecognizer_basics/GestureRecognizer_basics.html#//apple_ref/doc/uid/TP40009541-CH2-SW2

I am trying to implement the check mark example shown in the documentation and I can't because the compiler shows a bunch of warnings about the [super touchesMoved:touches withEvent:event] call, which is recommended by the documentation.

Where's the full example to learn how to correctly subclass for implementing a custom gesture?


回答1:


I found the following WWDC 2010 Session Videos extremely useful:

  • Session 120 - Simplifying Touch Event Handling with Gesture Recognizers (pdf)
  • Session 121 - Advanced Gesture Recognition (pdf)

To access these videos you must login at https://developer.apple.com.



来源:https://stackoverflow.com/questions/4074417/how-to-correctly-subclass-uigesturerecognizer

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