美文网首页
UITableView中的estimatedRowHeight,

UITableView中的estimatedRowHeight,

作者: 骑着雅迪小毛驴上班的老瞿 | 来源:发表于2018-02-05 19:54 被阅读0次

    1.iOS 7 出来的者三个属性
    文档是这么描述它的作用的:

    If the table contains variable height rows, it might be expensive to calculate 
    all their heights when the table loads. Using estimation allows you to defer 
    some of the cost of geometry calculation from load time to scrolling time.
    

    设计的初衷是好的,UItableView继承UIScrollview, UIScrollView加载的时候contentSize
    http://blog.sunnyxx.com/2015/05/17/cell-height-calculation/

    相关文章

      网友评论

          本文标题:UITableView中的estimatedRowHeight,

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