I am using story boards to create my app, and I have a navigation controller which navigated back and forth between pages. Now when it goes back to a page (eg when the user taps the back button), I need the page which the user is going back to to refresh (or in another words to do the viewDidiLoad method again). Is there a way to configure the Navigation controller to the that? is there a way to call a method (ANY method - I don't car if it's a special method I have to create just for that purpose) when the 'back' button on the navigation controller is taped?
Thank you for your support!! Any help is very much appreciated =]
您可以在viewWillAppear
或viewDidAppear
执行操作,但通常最好使用自定义@protocol和委托模式在2个视图控制器之间进行通信。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.