UITableView 屬性

什么是內(nèi)容?內(nèi)容包括什么?
1.cell
2.tableHeaderView\tableFooterView
3.sectionHeader\sectionFooter

contentSize.height : 所有內(nèi)容的總高度

contentInset : 在內(nèi)容周圍額外增加的間距(內(nèi)邊距),始終粘著內(nèi)容

contentOffset : 內(nèi)容距離frame矩形框,偏移了多少

frame : 是以父控件內(nèi)容的左上角為坐標原點{0, 0}

bounds : 是以自己內(nèi)容的左上角為坐標原點{0, 0}

contentOffset.y == frame頂部 和 contentSize頂部 的差值

Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容