UINavigationController intercepting – popViewControllerAnimated:

后端 未结 2 454
醉酒成梦
醉酒成梦 2021-01-13 22:32

So the the problem is that when someone touches the back button on the UINavigationControler, I would like to run some code to update the datasource.

The problem is

2条回答
  •  粉色の甜心
    2021-01-13 23:19

    Add your refresh code to the viewWillAppear:(BOOL)animated method on the view controller that is about to be displayed. In your case, that is the view controller that's already on the navigation stack.

提交回复
热议问题