去掉UItableview headerview黏性(sticky)
2016-07-22 16:52
435 查看
// 去掉UItableview headerview黏性(sticky) - (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 40; 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); } }
相关文章推荐
- Material Design 最全解析_5 UI控件
- 使用mui的input组件的注意事项
- iOS-OC-设置UITableViewCell之间的间距(推荐第四种)
- 在easyui中实现datagrid滚动条联动
- UITextView 行间距设置以及placeholder
- serialVersionUID的作用
- [leetcode] 376. Wiggle Subsequence
- android ui 特效
- 三个思路解决413 Request Entity Too Large报错处理
- ue4动画蓝图
- mongoVUE 查询方法汇总
- UITextView中长按时出现的按钮都是英文
- UIAlertController
- GIT GUI克隆github代码
- IOS 之 UIScrollView,UIPageControl
- UIImage 类别扩展(图片工具箱)
- 获取当前屏幕显示的viewcontroller
- iOS 开发 - iOS 8 以后使用UIAlertController的使用
- UIcollectionView的使用(首页的搭建1)
- ios UICollectionView的cell重叠