anonymox
anonymox

Reputation: 419

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

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 ? enter image description here

Upvotes: 1

Views: 2358

Answers (1)

iParesh
iParesh

Reputation: 2368

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

Upvotes: 3

Related Questions