Reload UITableView when navigating back?

前端 未结 7 1672
醉梦人生
醉梦人生 2021-01-30 06:38

I have a top level UIViewController that contains a UITableView. The top level UIViewController instantiates a NavigationController

相关标签:
7条回答
  • 2021-01-30 07:15

    In addition to the answer of Zoran Simic here the Swift code:

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        tableView.reloadData()
    }
    
    0 讨论(0)
提交回复
热议问题