Reloading view controller when navigation bar back button is pressed in swift 2

限于喜欢 提交于 2019-12-13 06:49:44

问题


I have three view controllers which in the third one I have a picker view which it store data into core data, and when I press navigation bar back button I want second view controller to refresh it's labels from core data, but I don't know how Any suggestion ?


回答1:


Use NSFetchRequest() method in viewWillAppear() method in second view controller



来源:https://stackoverflow.com/questions/35578699/reloading-view-controller-when-navigation-bar-back-button-is-pressed-in-swift-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!