去掉UItableview headerview黏性
//- (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);
// }
//}
//-(void)scrollViewDidScroll:(UIScrollView *)scrollView
//{
//
// if (scrollView.tag == 100102) {
// UITableView *tableview = (UITableView *)scrollView;
// CGFloat sectionHeaderHeight = 50;
// CGFloat sectionFooterHeight = 10;
// CGFloat offsetY = tableview.contentOffset.y;
// if (offsetY >= 0 && offsetY <= sectionHeaderHeight)
// {
// tableview.contentInset = UIEdgeInsetsMake(-offsetY, 0, -sectionFooterHeight, 0);
// }else if (offsetY >= sectionHeaderHeight && offsetY <= tableview.contentSize.height - tableview.frame.size.height - sectionFooterHeight)
// {
// tableview.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, -sectionFooterHeight, 0);
// }else if (offsetY >= tableview.contentSize.height - tableview.frame.size.height - sectionFooterHeight && offsetY <= tableview.contentSize.height - tableview.frame.size.height)
// {
// tableview.contentInset = UIEdgeInsetsMake(-offsetY, 0, -(tableview.contentSize.height - tableview.frame.size.height - sectionFooterHeight), 0);
// }
// }
//}