tableview添加上下滑动手势
来源:互联网 发布:python 真假 编辑:程序博客网 时间:2024/05/18 03:01
UISwipeGestureRecognizer *swipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)]; [swipe setDirection:UISwipeGestureRecognizerDirectionDown]; swipe.delegate = self; [self.mtable addGestureRecognizer:swipe]; UISwipeGestureRecognizer *swipeUp = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)]; [swipeUp setDirection:UISwipeGestureRecognizerDirectionUp]; swipeUp.delegate = self; [self.mtable addGestureRecognizer:swipeUp];
-(void)swipe:(UISwipeGestureRecognizer*)swipe{ if (swipe.direction == UISwipeGestureRecognizerDirectionUp) { [UIView animateWithDuration:0.5 animations:^{ //[self.cacView removeFromSuperview]; }]; } else { [UIView animateWithDuration:0.5 animations:^{ // [self.cacView removeFromSuperview]; }]; }}
0 0
- tableview添加上下滑动手势
- UITableView的上下滑动与自己添加的手势冲突
- UIScrollView的上下滑动和自己添加的滑动手势冲突
- ios添加滑动手势
- UIWebView 添加滑动手势
- IOS-滑动手势添加
- IOS添加滑动手势
- 给tableView添加手势事件
- 利用bounds处理tableView顶部上下滑动
- Android OnGestureListener 判断手势上下滑动
- GestureDetector封装手势检测上下滑动
- Android笔记:android监听手势上下滑动
- android GestureDetector简单手势检测(左右滑动、上下滑动)
- Android 自定义View 实现手势监听,左右滑动,上下滑动
- 添加手势,滑动切换网页
- view添加手势与tableView冲突问题
- view添加手势与tableView冲突问题
- Cell特效之图片随着TableView的滑动上下移动
- 分库分表的解决方案
- apache(apache+django+python)服务搭建
- SQL Server 性能调优(性能基线)
- 第九周项目五一元一次方程类
- Android RelativeLayout布局学习
- tableview添加上下滑动手势
- UML学习笔记
- java虚拟机一
- 条件覆盖(Condition coverage)
- vagrant up报错 * The box 'tBox' could not be found
- effective C++学习笔记第一天
- QT CREATOR在WINDOWS上的调试器安装与配置
- seo搜索引擎优化经验集锦
- Python之with关键字