美文网首页
UITableView 属性

UITableView 属性

作者: MRNAN_ | 来源:发表于2017-02-09 23:53 被阅读13次

什么是内容?内容包括什么?
1.cell
2.tableHeaderView\tableFooterView
3.sectionHeader\sectionFooter

contentSize.height : 所有内容的总高度

contentInset : 在内容周围额外增加的间距(内边距),始终粘着内容

contentOffset : 内容距离frame矩形框,偏移了多少

frame : 是以父控件内容的左上角为坐标原点{0, 0}

bounds : 是以自己内容的左上角为坐标原点{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

相关文章

网友评论

      本文标题:UITableView 属性

      本文链接:https://www.haomeiwen.com/subject/qxawittx.html