如何正确子类化 UIGestureRecognizer
我正在尝试实现文档中显示的复选标记示例,但我不能,因为编译器显示关于 [super TouchesMoved:touches withEvent:event]
调用的一堆警告,这是文档推荐的。
哪里有完整的示例来学习如何正确子类化以实现自定义手势?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现以下WWDC 2010 会议视频非常有用:
要访问这些视频,您必须登录 https://developer.apple.com。
I found the following WWDC 2010 Session Videos extremely useful:
To access these videos you must login at https://developer.apple.com.