UITableView不让section悬浮
来源:互联网 发布:淘宝账号怎样贷款 编辑:程序博客网 时间:2024/04/28 21:23
方法一、
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
CGFloat sectionHeaderHeight = 100;
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);
}
}
设置tableView的类型为Grouped即可
0 0
- UITableView不让section悬浮
- UICollectionView headerView悬浮 类似于UItableView的Section
- 如果去掉UITableView上的section的headerView和footerView的悬浮效果
- 如何不让UITableView滚动
- UITableView自定义Section
- UITableView自定义Section
- UItableview section headerview黏性
- UITableView _endCellAnimationsWithContext section
- UITableView插入Section
- UITableView Section 不悬停
- UITableView 有多个section
- UITableView设置Section间距
- uitableview组头悬浮问题
- 关于tableView的section悬浮
- 自定义UICollectionViewFlowLayout实现section悬浮
- UITableView刷新指定section、cell
- iOS UITableView设置Section间距
- UITableView section圆角效果
- 请求筛选模块被配置为拒绝包含的查询字符串过长的请求。
- 智慧石,代码的海洋
- Myrrix
- Fragements
- signal函数
- UITableView不让section悬浮
- 图的深度优先搜索和广度优先搜索
- Swift 组合动画效果(JNW、POP)
- JAVA大数高精度练习
- bzoj2152 聪聪可可【点分治】
- sublime 配置c++环境
- AsyncSocket中tag参数的用处
- 第八周【项目4-String类的构造】
- leetcode--Remove Duplicates from Sorted Array