iOS手势识别初探
来源:互联网 发布:自古黑金无he 知乎 编辑:程序博客网 时间:2024/04/29 12:01
UIGestureRecognizerState的定义如下:
typedefNS_ENUM(NSInteger, UIGestureRecognizerState) {
UIGestureRecognizerStatePossible, // the recognizer has not yet recognized its gesture, but may be evaluating touch events. this is the default state
UIGestureRecognizerStateBegan, // the recognizer has received touches recognized as the gesture. the action method will becalled at the next turn of the run loop
UIGestureRecognizerStateChanged, // the recognizer has received touches recognized as a change to the gesture. the actionmethod will be called at the next turn of the run loop
UIGestureRecognizerStateEnded, // the recognizer has received touches recognized as the end of the gesture. the action method will be called at the next turn of the run loop and the recognizer will be reset to UIGestureRecognizerStatePossible
UIGestureRecognizerStateCancelled, // the recognizer has received touches resulting in the cancellation of the gesture. the action method will be called at the next turn of the run loop. the recognizer will be reset to UIGestureRecognizerStatePossible
UIGestureRecognizerStateFailed, // the recognizer has received a touch sequence that can not be recognized as the gesture. the action method will not be called and the recognizer will be reset to UIGestureRecognizerStatePossible
// Discrete Gestures – gesture recognizers that recognize a discrete event but do not report changes (for example, a tap) do not transition through the Began and Changed states and can not fail or be cancelled
UIGestureRecognizerStateRecognized = UIGestureRecognizerStateEnded// the recognizer has received touches recognized as the gesture. the action method will be called at the next turn of the run loop and the recognizer will be reset to UIGestureRecognizerStatePossible
};
- iOS手势识别初探
- 初探手势识别系统1------手势分割
- iOS 手势识别 - gestureRecognizer
- ios 手势识别UIGestureRecognizer
- iOS 手势识别 - gestureRecognizer
- iOS实现手势识别
- iOS手势识别(转)
- iOS 手势识别 - gestureRecognizer
- iOS- UIImageView/手势识别
- IOS手势识别
- IOS 开发手势识别
- IOS之手势识别
- iOS 手势识别
- iOS各种手势识别
- iOS 手势识别 - gestureRecognizer
- IOS 手势识别
- iOS 手势识别 详述
- iOS 手势识别器
- 适配器模式
- Oracle, SQL Server, My SQL数据分页查询语句
- Hive 读书笔记1:Getting Started
- Web的假死解析
- ubuntu apt-get 安装软件时忽略yes
- iOS手势识别初探
- 多线程11:读者写者问题
- mysql数据插入性能的几个方法
- mysql 连接数相关参数
- JavaScript正则表达式
- gdb value optimized out
- (转)Android上的单元测试
- CCEditBox之接口篇
- Erlang的Emakefile文件备忘