title: How To Dismiss Current View Controller Just Like Pressing The Back Button On Navigation Controller
body: <p>Is there anyway to implement the effect of back button on navigation bar?</p>
  
  <p>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. </p>
  
  <p>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.</p>
  
  <p>I tried using [self dismissViewControllerAnimated:YES completion:nil];
  Using push segue won't work either. </p>
  
  <p>Any help? Many Thanks!</p>