TableView相关frame
2016-09-19 本文已影响84人
沈正方
什么是TableView的内容content?
- cell
- tableViewHeaderView & tableViewFooterView
- sectionHeader & sectionFooter

什么是内容的高度contentSizeHeight?
- (cell + tableViewHeaderView & tableViewFooterView + sectionHeader & sectionFooter ).height
什么是内容的偏移量contentOffset?
- (frame的顶部 - content的顶部) = 内容的偏移量


什么是内边距contentInset?
- 内容周围的间距
- 内容周围到屏幕边框的距离
contentInset
添加子控件,设置frame.frame指的是?
- frame :以父控件内容左上角为坐标原点
- frame.size.height : 矩形框(屏幕框)的高度
Frame & Bounds
- frame : 以父控件内容左上角为坐标原点
- bounds : 以自己内容的左上角为坐标原点