What is the proper way to dismiss a modal when using storyboards?

aryaxt picture aryaxt · Feb 21, 2012 · Viewed 39.9k times · Source

Using storyboards, what is the proper way to dismiss a modal?

  • using IBAction and writing code to dismiss after a button click?
  • using segue and notify the parent view controller after a button click?

Answer

Bill Bonar picture Bill Bonar · Feb 21, 2012

See Here Dismissing a Presented View Controller about halfway down

When it comes time to dismiss a presented view controller, the preferred approach is to let the presenting view controller dismiss it.

So you should use an IBAction and writing code to dismiss after a button click