如何正确地继承UIGestureRecognizer [英] How to correctly subclass UIGestureRecognizer

查看:169
本文介绍了如何正确地继承UIGestureRecognizer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

我找到了WWDC 2010会话视频

I found the WWDC 2010 Session Videos

  • Session 120 - Simplifying Touch Event Handling with Gesture Recognizers and
  • Session 121 - Advanced Gesture Recognition

非常有用。

要访问此视频,您必须登录 http://developer.apple.com

这里您将找到WWDC 2010的示例代码

here you'll find the sample codes of WWDC 2010

这篇关于如何正确地继承UIGestureRecognizer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆