title: How can I pop a modal view and the previous navigation controller view at once?
body: <p>I want to pop a modal view and the previous view at the same time. For example, look at the calendars app. When I am on the <code>Edit</code> screen and select <code>Delete Event</code>, I am taken back to the calendar view.</p>
  
  <p>The <code>Edit</code> screen, which was presented modally is popped as well as the the <code>Event</code> screen (where the user is just viewing the calendar event). The problem I am having is that I know how to pop a modal view, but from the same <code>UIViewController</code> subclass (<code>Edit</code> screen in this example).</p>
  
  <p>How can I pop a view that isn't modal?</p>
  
  <p>I was thinking about popping the modal view as you would normally, then posting a <code>NSNotification</code> to the '<code>Event</code>' (for instance) screen's <code>UIViewController</code> subclass and telling it to pop that view as well.</p>
  
  <p>The other thing is that for the animation, it should be the <code>dismissModalViewControllerAnimated</code> animation (slide down) and not the <code>popViewControllerAnimated</code> animation (slide left).</p>
  
  <p>Looking for a better solution, I found <a href="https://stackoverflow.com/questions/3852932">this</a>, which doesn't work in my case (at least not with <code>popViewControllerAnimated</code>.</p>