UIPressPhase API
来源:互联网 发布:织梦cms如何仿站 编辑:程序博客网 时间:2024/05/20 10:13
NS_ASSUME_NONNULL_BEGIN
NS_CLASS_AVAILABLE_IOS(9_0)@interface UIPressesEvent :UIEvent
- (NSSet <UIPress *> *)allPresses;
- (NSSet <UIPress *> *)pressesForGestureRecognizer:(UIGestureRecognizer *)gesture;
@end
NS_ASSUME_NONNULL_END
#endif
#ifndef SDK_HIDE_TIDE
//触摸事件
@property(nonatomic,copy)NSArray<NSNumber *> *allowedTouchTypes NS_AVAILABLE_IOS(9_0);// Array of UITouchType's as NSNumbers.
//按压事件
@property(nonatomic,copy)NSArray<NSNumber *> *allowedPressTypes NS_AVAILABLE_IOS(9_0);// Array of UIPressTypes as NSNumbers.
NS_ENUM_AVAILABLE_IOS(9_0)typedefNS_ENUM(NSInteger, UIPressPhase) {
UIPressPhaseBegan, // whenever a button press begins.
UIPressPhaseChanged, // whenever a button moves.
UIPressPhaseStationary, // whenever a buttons was pressed and is still being held down.
UIPressPhaseEnded, // whenever a button is releasd.
UIPressPhaseCancelled, // whenever a button press doesn't end but we need to stop tracking.
};
NS_ENUM_AVAILABLE_IOS(9_0)typedefNS_ENUM(NSInteger, UIPressType) {
UIPressTypeUpArrow,
UIPressTypeDownArrow,
UIPressTypeLeftArrow,
UIPressTypeRightArrow,
UIPressTypeSelect,
UIPressTypeMenu,
UIPressTypePlayPause,
};
NS_CLASS_AVAILABLE_IOS(9_0)@interface UIPress :NSObject
@property(nonatomic,readonly)NSTimeInterval timestamp;
@property(nonatomic,readonly)UIPressPhase phase;
@property(nonatomic,readonly)UIPressType type;
@property(nullable,nonatomic,readonly,strong)UIWindow *window;
@property(nullable,nonatomic,readonly,strong)UIResponder *responder;
@property(nullable,nonatomic,readonly,copy) NSArray <UIGestureRecognizer *> *gestureRecognizers;
// For analog buttons, returns a value between 0 and 1. Digital buttons return 0 or 1.
@property(nonatomic,readonly)CGFloat force;
@end
UIPressPhaseBegan, // whenever a button press begins.
UIPressPhaseChanged, // whenever a button moves.
UIPressPhaseStationary, // whenever a buttons was pressed and is still being held down.
UIPressPhaseEnded, // whenever a button is releasd.
UIPressPhaseCancelled, // whenever a button press doesn't end but we need to stop tracking.
};
NS_ENUM_AVAILABLE_IOS(9_0)typedefNS_ENUM(NSInteger, UIPressType) {
UIPressTypeUpArrow,
UIPressTypeDownArrow,
UIPressTypeLeftArrow,
UIPressTypeRightArrow,
UIPressTypeSelect,
UIPressTypeMenu,
UIPressTypePlayPause,
};
NS_CLASS_AVAILABLE_IOS(9_0)@interface UIPress :NSObject
@property(nonatomic,readonly)NSTimeInterval timestamp;
@property(nonatomic,readonly)UIPressPhase phase;
@property(nonatomic,readonly)UIPressType type;
@property(nullable,nonatomic,readonly,strong)UIWindow *window;
@property(nullable,nonatomic,readonly,strong)UIResponder *responder;
@property(nullable,nonatomic,readonly,copy) NSArray <UIGestureRecognizer *> *gestureRecognizers;
// For analog buttons, returns a value between 0 and 1. Digital buttons return 0 or 1.
@property(nonatomic,readonly)CGFloat force;
@end
#endif
0 0
- UIPressPhase API
- API
- api
- API
- API
- api
- API
- API
- API
- API
- API
- API
- API
- API
- API
- api
- api
- API
- Jackson 2开发详解
- 出门问问面试题2016
- 二叉树路径求和
- 使用Genymotion调试出现错误INSTALL_FAILED_CPU_ABI_INCOMPATI
- 三目运算符"?:"的透彻分析
- UIPressPhase API
- 工作日志(2015.10.30)
- android---(async-http)
- 详解VMware Workstation 12 安装虚拟机
- Java实现简易的文本编辑器
- 黑马程序员——反射其他
- 【Nutch】Solr4.6搭建
- Nutz笔记-数据库篇
- Single Number II