tableview header不滚动
来源:互联网 发布:react 引用js 编辑:程序博客网 时间:2024/06/08 02:12
-(void)scrollViewDidScroll:(UIScrollView *)scrollView
{
if (scrollView == _seriesTableView)
{
CGFloat sectionHeaderHeight =20;
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);
}
}
UIView *headerView = [[UIViewalloc] init];
headerView.backgroundColor =_seriesTableView.backgroundColor;
headerView.frame =CGRectMake(0,0, _seriesTableView.width,10);
_seriesTableView.tableHeaderView = headerView;
- tableview header不滚动
- 使 UITableViewStylePlain Style 的TableView header 不浮动,像Group Style 那样固定,跟随Tableview 滚动,而不会停在顶端。
- headerVIew不随tableView 滚动
- 设置tableView的header不悬浮
- tableview中需要header随着cell一起滚动
- ios uitableview header不随着滚动
- iOS9 TableView和ScrollView滚动不响应问题
- tableView 中 headerView 吸附头部,不整体滚动
- iOS9 TableView和ScrollView滚动不响应问题
- qt tableview beginResetModel endResetModel后 setCurrentIndex 不滚动
- tableview设置header
- TableView---header悬停问题
- tableview header 取消 悬浮
- 【iOS】TableView的footerView不随cell滚动而停留在tableView底部的问题
- TableView的footerView不随cell滚动而停留在tableView底部的问题,ios tableviewfooter
- swift -- 更改 tableview section header
- tableview header footer 取消悬浮
- iOS tableView滚动优化
- 关于自定义控件
- 06-图1. List Components (25) 栈和队列
- 全屏切换_页面
- HDU2203 亲和串 KMP
- 选择,冒泡排序
- tableview header不滚动
- STM32 8位IO的操作
- Generate mp4 video with image files using Jcodec in Android
- ECSHOP 连接字段
- 自动验证
- MVC后台异常跳转页面
- 杭电ACM1027——Ignatius and the Princess II
- cocos2dx-3.5从Mac下移植到windows出现的一些问题
- yate学习--yateclass.h--class YATE_API Stream