zoukankan      html  css  js  c++  java
  • UITableView的plain样式下,取消区头停滞效果

    核心代码

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

      CGFloat sectionHeaderHeight
    = sectionHead.height; // 区头高度   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);   } }
  • 相关阅读:
    POJ 2154
    POJ 1286
    Polycarp's problems
    Greedy Change
    Goods transportation
    Ugly Problem
    Happy Matt Friends
    Dense Subsequence
    Ray Tracing
    Batch Sort
  • 原文地址:https://www.cnblogs.com/xuzb/p/8706973.html
Copyright © 2011-2022 走看看