美文网首页
ios 11 适配 TableView的 heightForH

ios 11 适配 TableView的 heightForH

作者: 小孩仔 | 来源:发表于2017-10-10 10:16 被阅读0次
如果iOS11 系统使用tableView的header要做成一定的效果。只需在设置tableView的时候加入这几句 _tableView.estimatedRowHeight = 0; _tableView.estimatedSectionHeaderHeight = 0; _tableView.estimatedSectionFooterHeight = 0; 然后就可以了。iOS11默认开启Self-Sizing,关闭Self-Sizing即可。

相关文章

网友评论

      本文标题: ios 11 适配 TableView的 heightForH

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