如何正确子类化 UIGestureRecognizer

发布于 2024-09-30 09:00:25 字数 686 浏览 0 评论 0原文

我已经阅读了文档: 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

我正在尝试实现文档中显示的复选标记示例,但我不能,因为编译器显示关于 [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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终陌 2024-10-07 09:00:25

我发现以下WWDC 2010 会议视频非常有用:

  • 会议 120 - 简化触摸事件处理手势识别器 (pdf)
  • 第 121 节 - 高级手势识别 (pdf)

要访问这些视频,您必须登录 https://developer.apple.com

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文