iOS 点击状态栏回滚scrollView顶部
来源:互联网 发布:立体设计图软件 编辑:程序博客网 时间:2024/05/16 09:17
// When the user taps the status bar, the scroll view beneath the touch which is closest to the status bar will be scrolled to top, but only if its `scrollsToTop` property is YES, its delegate does not return NO from `shouldScrollViewScrollToTop`, and it is not already at the top.// On iPhone, we execute this gesture only if there's one on-screen scroll view with `scrollsToTop` == YES. If more than one is found, none will be scrolled.@property(nonatomic) BOOL scrollsToTop; // default is YES.- (BOOL)scrollViewShouldScrollToTop:(UIScrollView *)scrollView; // return a yes if you want to scroll to the top. if not defined, assumes YES
如果控制器有多个scrollView(scrollview 、tableview 、collectionview、webView),有且只能有一个该属性设为YES,才能触发这个效果。
0 0
- iOS 点击状态栏回滚scrollView顶部
- ScrollView滚回顶部
- ScrollView滚回顶部
- iOS 点击状态栏返回顶部(多scrollView的实现)
- iOS点击状态栏回到顶部(一个控制器中包含多个scrollview,系统自带的回到顶部失效)
- ios设置点击状态栏返回到顶部
- ios设置点击状态栏返回到顶部
- 多个tableview 点击状态栏当前scrollView滚动到顶部
- iOS 双击状态栏滚到视图顶部无效
- 点击状态栏回到顶部
- amdroid小知识之——ScrollView滚回顶部
- iOS UITableView中点击状态栏无法回滚到顶部
- iOS中点击状态栏让滑动视图回到顶部
- android如何实现类似ios点击状态栏回到顶部功能
- iOS点击屏幕使tableview、scrollview回到顶部
- 让ScrollView自动滚到顶部
- ios顶部状态栏
- iOS 隐藏顶部状态栏
- 黑马day17 json格式的数据
- Xutils 总结
- Android 屏幕旋转 处理 AsyncTask 和 ProgressDialog 的最佳方案
- phalcon 设定数据库参数
- UICollectionView-使用Flow Layout
- iOS 点击状态栏回滚scrollView顶部
- navicat修改表的属性
- Fiddler工具的使用
- bzoj2875: [Noi2012]随机数生成器 裸矩阵乘法
- exit(0),exit(1),exit(-1)的区别?
- leetcode-二分搜索:求一个数的平方根
- HDU 1026
- “赢在中国”点评人给80后年轻人的30个忠告
- kafka 使用技巧