使用UIScreenEdgePanGestureRecognizer写iOS7侧边栏
来源:互联网 发布:淘宝儿童文胸模特 编辑:程序博客网 时间:2024/06/08 05:12
使用UIScreenEdgePanGestureRecognizer写iOS7侧边栏
A UIScreenEdgePanGestureRecognizer looks for panning (dragging) gestures that start near an edge of the screen. The system uses screen edge gestures in some cases to initiate view controller transitions. You can use this class to replicate the same gesture behavior for your own actions.
UIScreenEdgePanGestureRecognizer看起来像pan手势,它是检测屏幕边缘的pan手势的。系统在某些controller转场的时候会使用这个手势。你也可以使用这个手势做其他的事情。
源码:
RootViewController.m
处理手势:
效果如下图:
如果想与其他手势并发操作,实现如下代理即可:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return YES;
}
0 0
- 使用UIScreenEdgePanGestureRecognizer写iOS7侧边栏
- 使用UIScreenEdgePanGestureRecognizer写iOS7侧边栏
- 侧边栏使用
- 怎么写一个侧边栏(一)
- Fragment使用—侧边栏
- 侧边栏 MMDrawerController使用教程
- 使用slidingmenu实现侧边栏
- MMDrawerController抽屉侧边栏使用范例代码
- 一个方便使用的轻量级侧边栏
- 使用Iframe标签创建侧边栏
- SectionIndexer解析与使用 联系人侧边栏
- SlidingMenu (侧边栏)使用步骤
- 路由和侧边栏结合使用
- 侧边栏
- 侧边栏
- 侧边栏
- 【iOS 7】使用UIScreenEdgePanGestureRecognizer实现swipe to pop效果
- 【iOS 7】使用UIScreenEdgePanGestureRecognizer实现swipe to pop效果
- Adapter内的onItemClick监听器四个arg参数
- ListView中显示Bitmap图像
- 函数指针
- Apple Swift编程语言入门教程
- PHP---字符串操作
- 使用UIScreenEdgePanGestureRecognizer写iOS7侧边栏
- [算法入门经典] 7.5.3 八数码问题 | HDU 1043
- pthread之如何正确的终止正在运行的子线程
- ZOJ Monthly, June 2014——Grouping
- 解决安卓TextView异常换行,参差不齐等问题
- ifstream(一)之 eof() 函数——解决读取文件最后一个数据多读一次的方法
- 浅谈并行编程中的任务分解模式
- 递归删除目录下的所有文件及子目录下所有文件
- 函数指针与指针函数的区别