美文网首页
iOS tableView 移除顶部悬停的sectionHead

iOS tableView 移除顶部悬停的sectionHead

作者: JohnayXiao | 来源:发表于2018-08-13 16:34 被阅读207次
CGFloat sectionHeaderHeight = FitValue(40);//此高度为heightForHeaderInSection高度值
   if (scrollView.contentOffset.y >= sectionHeaderHeight) {
       
        scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0);
       
   }else {
       
       scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
   }

相关文章

网友评论

      本文标题:iOS tableView 移除顶部悬停的sectionHead

      本文链接:https://www.haomeiwen.com/subject/zyuubftx.html