#import
#import
#import
@class UIWindow, UIView;
typedef NS_ENUM(NSInteger, UITouchPhase) {
UITouchPhaseBegan,
UITouchPhaseMoved,
UITouchPhaseStationary,
UITouchPhaseEnded,
UITouchPhaseCancelled,
};
NS_CLASS_AVAILABLE_IOS(2_0) @interface UITouch : NSObject
@property(nonatomic,readonly) NSTimeInterval timestamp; // 产生时间
@property(nonatomic,readonly) UITouchPhase phase; // 事件的阶段(手指是什么状态)
@property(nonatomic,readonly) NSUInteger tapCount; // 短时间内点击的次数
@property(nonatomic,readonly,retain) UIWindow *window; // 触摸产生的窗口
@property(nonatomic,readonly,retain) UIView *view; // 触摸产生的view
@property(nonatomic,readonly,copy) NSArray *gestureRecognizers NS_AVAILABLE_IOS(3_2);
- (CGPoint)locationInView:(UIView *)view; // 返回触摸的位置
- (CGPoint)previousLocationInView:(UIView *)view; // 上一个触摸点
@end