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

前端 未结 6 1039
终归单人心
终归单人心 2021-02-05 00:24

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
6条回答
  •  生来不讨喜
    2021-02-05 00:44

    As the Apple online documentation indicates, the presenting view controller is responsible for dismissing the modal (presented) view.

    There's a post and example available here

提交回复
热议问题