Is there anyway to implement the effect of back button on navigation bar?
For example: I have two view controllers, lets name then vc1(embeded in navigation controller) and vc2. On the navigation bar of vc2 I have a "done" button on the right side.
I want that when I navigate from vc1 to vc2, I will be able to go back to vc1 by pressing the "done" button on vc2. I want the effect of pressing the "done" button to be the same as pressing back button on navigation bar.
I tried using [self dismissViewControllerAnimated:YES completion:nil]; Using push segue won't work either.
Any help? Many Thanks!