Reload tableView after dismiss a viewController

前端 未结 5 944
遇见更好的自我
遇见更好的自我 2021-02-14 14:05

I have a ViewController(VCA) with a TableView inside. From this ViewController it is possibile to call another ViewController (VCB). In this second VC it is possibile add an ite

5条回答
  •  执念已碎
    2021-02-14 15:00

    I managed to do it using delegate/protocol that is usually used to pass data between view controllers but in this instance I just called the function without passing data and inside this function i put ( tableView.reloadData() ) and it worked like a sweet :)

    juts google "Passing data between view controllers and use the method as I explained above"

提交回复
热议问题