去掉UITableViewStylePlain样式下Section停留问题
来源:互联网 发布:矩阵的模怎么计算 编辑:程序博客网 时间:2024/06/03 22:28
//去掉UItableview headerview黏性(sticky)
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
if (scrollView == self.menuTableView)
{
CGFloat sectionHeaderHeight = 25; //sectionHeaderHeight
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);
}
}
}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
if (scrollView == self.menuTableView)
{
CGFloat sectionHeaderHeight = 25; //sectionHeaderHeight
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
- 去掉UITableViewStylePlain样式下Section停留问题
- 去掉chrome下input样式
- 禁止Section停留,挡住Cell
- tableview 的格式为UITableViewStylePlain,去掉headerview的黏连性
- dede导航停留样式
- uitableview group的一些问题 (设置两个section之间的距离,设置背景颜色 等)在plain下去掉foot view的粘性
- UITableView UITableViewStylePlain模型下 取消headerView的黏结性
- UItableView处于UITableViewStylePlain模式下如何取消HeaderView粘连性
- 去掉section的headview粘性
- 去掉tableviewcell的选中停留效果
- 给导航栏添加停留样式
- 去掉element.style样式
- 04-addFieldError去掉样式
- 去掉苹果默认样式
- 去掉边框默认样式
- jQuery表格隔行样式-(含鼠标停留行样式)
- 去掉tableview中section的headerview粘性
- 【技巧】UITableView 在UITableViewStylePlain模型下,取消headerView的黏结性,不浮动
- Hadoop2.x与Zookeeper安装
- 黑马程序员——Java基础之GUI
- 用c++程序解答一元二次方程,并且输出相关属性
- C++实现远程桌面集群软件
- Unity3D中的Coroutine详解
- 去掉UITableViewStylePlain样式下Section停留问题
- beautyful girl
- CentOS安装配置svn,并配置SVN自动更新Web目录
- 你开心,835全讯网就开心了
- iPhone 丢失补救策略
- html meta标签大全
- 【C++注意事项】4 指针 Pointers
- Fragment的基本使用技巧之add(1)
- ZOJ -- 2317(矩阵快速幂 + 大数简单处理)