IOS 开发学习二十三 手势 切换UIView
来源:互联网 发布:c语言轻量级 gui 编辑:程序博客网 时间:2024/06/02 03:25
#pragma mark 手势-(void)gesture{ UISwipeGestureRecognizer* leftSwipeGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipes:)]; UISwipeGestureRecognizer* rightSwipeGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipes:)]; leftSwipeGestureRecognizer.direction = UISwipeGestureRecognizerDirectionLeft ; rightSwipeGestureRecognizer.direction = UISwipeGestureRecognizerDirectionRight; [self.view addGestureRecognizer:leftSwipeGestureRecognizer]; [self.view addGestureRecognizer:rightSwipeGestureRecognizer];}- (void)handleSwipes:(UISwipeGestureRecognizer *)sender{ if (sender.direction == UISwipeGestureRecognizerDirectionLeft) { } if (sender.direction == UISwipeGestureRecognizerDirectionRight) { [[self navigationController] popViewControllerAnimated:YES]; }}
0 0
- IOS 开发学习二十三 手势 切换UIView
- 十三,iOS使用UIView做轮播
- iOS开发之二:UIWindow与UIView
- 十三 iOS之 手势解锁
- iOS 手势切换视图
- 【iOS开发】UIView之间常用视图之间切换方式
- iOS 开发学习之 User Interface(5)UIView 与 UIViewController【二】
- ios开发-UIView和UILabel的学习
- iOS 开发学习38 UIView嵌套UITableView
- iOS学习开发2:UIView和UIWindow
- iOS开发 ☞ 对比学习UIView动画
- IOS开发之手势的学习
- ios开发之UIView动画效果实现二
- UIView-IOS开发
- 【iOS开发】---- UIView动画
- iOS UIView开发总结
- 【iOS开发】---- UIView动画
- iOS 开发之 UIView
- .NET中开源CMS目录
- 工作经历2
- EXCEL表的自杀代码
- 海量数据处理---倒排索引
- Linux下的多线程编程(2)
- IOS 开发学习二十三 手势 切换UIView
- Linux反选删除文件
- Ungine 引擎
- 进程间通信 - 命名管道实现
- Hibernate数据查询
- 使用python解析Json字符串-获取Json字符串关键字
- iOS自动打包总结
- svn: This client is too old to work with the working...
- [正则]匹配从0到100(不包括0,包括100)的数字