iOS 长按手势处理 ZCSHoldProgress
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/zshannon/ZCSHoldProgress
软件介绍
ZCSHoldProgress是UILongPressGestureRecognizer的子类扩展。用来处理长按手势事件。
示例代码:
#import "ZCSHoldProgress.h"
ZCSHoldProgress *holdProgress = [[ZCSHoldProgress alloc] initWithTarget:self action:@selector(gestureRecogizerTarget:)];
holdProgress.minimumPressDuration = 3.0;
[self.view addGestureRecognizer:holdProgress];
- (void)gestureRecogizerTarget:(UIGestureRecognizer *)gestureRecognizer {
if (gestureRecognizer.state == UIGestureRecognizerStateBegan) {
// TODO: do something interesting
} else if (gestureRecognizer.state == UIGestureRecognizerStatePossible) {
// TODO: knock it off with the interesting stuff
}
}
XForms Essentials
Micah Dubinko / O'Reilly Media, Inc. / 2003-08-27 / USD 29.95
The use of forms on the Web is so commonplace that most user interactions involve some type of form. XForms - a combination of XML and forms - offers a powerful alternative to HTML-based forms. By pro......一起来看看 《XForms Essentials》 这本书的介绍吧!
