UITableView Section标题不滑动问题
来源:互联网 发布:河北工业大学 知乎 编辑:程序博客网 时间:2024/06/05 01:30
有时候使用UITableView所实现的列表,会使用到section,但是又不希望它粘在最顶上而是跟随滚动而消失或者出现,下面的代码片段就是实现此功能
- (void)scrollViewDidScroll:(UIScrollView *)scrollView { if (scrollView == _tableView) { CGFloat sectionHeaderHeight = 36; if (scrollView.contentOffset.y <= sectionHeaderHeight && scrollView.contentOffset.y >= 0) { scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0); } else if (scrollView.contentOffset.y >= sectionHeaderHeight) { scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0); } } }
0 0
- UITableView Section标题不滑动问题
- ios tableview section标题不滑动问题
- UITableView Section 不悬停
- UITableView的滑动问题
- iOS-UITableView使用reloadSections刷新section问题
- 让UITableView的section header view不悬停,让UITableView的section headerview取消粘性
- UITableView header不随着滑动停留
- iOS8中 UITableView section 分区头部视图不显示
- 让UITableView的section header view不悬停的方法
- 让UITableView的section header view不悬停的方法
- 让UITableView的section header view不悬停的方法
- 如何让UITableView的section headerView不悬停
- 让UITableView的section header view不悬停的方法
- 让UITableView的section header view不悬停的方法
- 自定义分区标题不随着table滑动
- ios UITableView 滑动 headerView footerView 跟随问题
- 让UITableView自动滑动(定位)到某一行cell section刷新 cell刷新
- UITableView自定义Section
- 几道面试小题
- android的动画
- 泛型类型约束
- 牛人教你如何阅读源码
- query mysql using pymysql in Python 3.3
- UITableView Section标题不滑动问题
- 游戏设计之我见 —— 动作游戏中的敌人移动设计
- ajax在firefox和chrome下提交不成功的解决办法
- 商业智能(BI)对企业来说为何如此重要?
- 利用Jsoup爬取网站的图片,保存到本地
- IDF 实验室 啥?
- 学习总结
- HttpClient+ Spring兑现多线程
- 关于启动图