Home > Database > Mysql Tutorial > UI进阶第十发:Quartz 2D手势识别

UI进阶第十发:Quartz 2D手势识别

WBOY
Release: 2016-06-07 15:18:39
Original
920 people have browsed it

[tapaddTarget:selfaction:@selector(tapIconView:)]; 3.手势识别的状态: typedef NS_ENUM (NSInteger,UIGestureRecognizerState){ / / 没有触摸事件发生,所有手势识别的默认状态 UIGestureRecognizerStatePossible, / / 一个手势已经开始但尚未改变或者完

[tap addTarget:self action:@selector(tapIconView:)];


3.手势识别的状态:

typedef NS_ENUM(NSInteger, UIGestureRecognizerState) {

    // 没有触摸事件发生,所有手势识别的默认状态

    UIGestureRecognizerStatePossible,

    // 一个手势已经开始但尚未改变或者完成时

    UIGestureRecognizerStateBegan,

    /手势状态改变

    UIGestureRecognizerStateChanged,

    /手势完成

    UIGestureRecognizerStateEnded,

    /手势取消,恢复至Possible状态

    UIGestureRecognizerStateCancelled, 

    // 手势失败,恢复至Possible状态

    UIGestureRecognizerStateFailed,

    /识别到手势识别

    UIGestureRecognizerStateRecognized = UIGestureRecognizerStateEnded

};

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template