美文网首页
UITableView 设置 tableFooterView

UITableView 设置 tableFooterView

作者: 喵喵粉 | 来源:发表于2020-04-15 14:35 被阅读0次

tableview的布局方式影响 tableviewtableFooterView的写法

  1. autolayout

viewDidLoad中写法,跳过当前runloop

DispatchQueue.main.async {
    self.tvList.tableFooterView = self.vFooter
}

或者在viewDidAppear

self.tvList.tableFooterView = self.vFooter
  1. frame
self.tvList.tableFooterView = self.vFooter

相关文章

网友评论

      本文标题:UITableView 设置 tableFooterView

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