ios 滑动swipe识别
来源:互联网 发布:caffe 数据层 编辑:程序博客网 时间:2024/06/09 23:51
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor=[UIColor clearColor];
UISwipeGestureRecognizer *recognizer;
recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFromRight:)];
[recognizer setDirection:(UISwipeGestureRecognizerDirectionRight)];
[[self view] addGestureRecognizer:recognizer];
recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFromLeft:)];
[recognizer setDirection:(UISwipeGestureRecognizerDirectionLeft)];
[[self view] addGestureRecognizer:recognizer];
recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFromUp:)];
[recognizer setDirection:(UISwipeGestureRecognizerDirectionUp)];
[[self view] addGestureRecognizer:recognizer];
recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFromDown:)];
[recognizer setDirection:(UISwipeGestureRecognizerDirectionDown)];
[[self view] addGestureRecognizer:recognizer];
}
-(void)handleSwipeFromRight:(id)sender{
NSLog(@"Hello swipt right");
}
-(void)handleSwipeFromLeft:(id)sender{
NSLog(@"Hello swipt left");
}
-(void)handleSwipeFromDown:(id)sender{
NSLog(@"Hello swipt down");
}
-(void)handleSwipeFromUp:(id)sender{
NSLog(@"Hello swipt up");
}
- ios 滑动swipe识别
- Swipe Views(滑动视图)
- Gesture - Swipe滑动
- Swipe JS滑动插件
- 滑动视图 Swipe Views
- iOS7滑动返回 - Swipe Back
- Appium 滑动界面swipe用法
- HTML5滑动(swipe)事件
- HTML5滑动(swipe)事件
- iOS 手势识别 ——长按和轻扫(swipe)
- Swipe-移动端触摸滑动插件swipe.js
- swipe笔记 swipe.js 轻松实现手机端滑动效果
- 移动web滑动效果Swipe JS插件
- appium不同版本中的swipe滑动问题
- swipe实现滑动页面,定位元素
- swipe.js移动端滑动插件
- appium 中swipe()方法向左滑动时
- uiautomator上swipe滑动到目的元素
- .NET命名空间使用介绍
- php74 骑士 火车头采集简历 接口及采集规则
- Spring(事务通配符)
- Linux Slub分配器(七)--销毁缓存
- EL表达式不起作用的解决方法
- ios 滑动swipe识别
- EL表达式---函数
- 如何用DOS获得目标主机的IP(媒介类似qq聊天等通讯工具)
- The reference to entity "characterEncoding" must end with the ';' delimiter
- iphone内存检测
- libxml2在linux下的使用
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- 基于OGNL的类型转换
- Codeforces Round #124 (Div. 2)