什么是內(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