tableView的重要属性分析
分类:
文章
•
2024-03-27 12:56:10
什么是内容?内容包括什么?
- 1.cell
- 2.tableHeaderView\tableFoterView
- 3.sectionHeader\sectionFooter
contentSize.height:所有内容的总高度
contentInset:在内容周围额外增加的间距(内边距),始终粘着内容
contentOffset:内容距离frame矩形框,偏移了多少
- frame:是以父控件内容的左上角为坐标原点{0,0}
- bounds:是以自己内容的左上角为坐标原点{0,0}
- contentOffset.y = frame顶部和contentSize顶部的差值








