tableView的plain样式的headerView的上拉过程当中悬停解决方法

//去掉UItableview headerview黏性(sticky) 去掉header的浮动效果io

- (void)scrollViewDidScroll:(UIScrollView *)scrollView {table

    if (scrollView == self.tableView)scroll

    {tab

        CGFloat sectionHeaderHeight = 100; //sectionHeaderHeighttableview

        if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) {view

            scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);vi

        } else if (scrollView.contentOffset.y>=sectionHeaderHeight) {co

            scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0);header

        }浮动

    }

}

相关文章
相关标签/搜索