TableView的重要性

  • 一.什么是tableView的内容(content)?

    1.Cell.  cell的位置尺寸谁计算? ->系统的TableView. -> 什么时候计算? ->一开始就会把所有的cell计算好.

    2.tableHeaderView\tableFooterView

    3.sectionHeader\sectionFooter

     

    二.contentSize.height : 内容的高度

     

    三.contentOffset.y : 内容的偏移量(frame的顶部 - content的顶部)

     

    四.contentInset : 内容周围的间距(内边距)

     

    五.Frame

    1.frame.size.height :  矩形框的高度

    2.frame : 以父控件内容的左上角为坐标原点
 
 
 
 
 
 
posted @ 2016-04-10 16:53  ChunFuYang  阅读(149)  评论(0编辑  收藏  举报