Dismiss modal view form sheet controller on outside tap

前端 未结 13 1044
猫巷女王i
猫巷女王i 2020-12-01 06:16

I am presenting a modal view controller as a form sheet and dismissing it when the cancel button, which is a bar button item, is clicked. I need to dismiss it when I tap on

相关标签:
13条回答
  • 2020-12-01 07:09

    FYI, on iOS 13 form sheets now have a standard dismiss gesture - they go away when you touch anywhere inside the modal and swipe it down (set the new isModalInPresentation property to false if you want to prevent that).

    0 讨论(0)
提交回复
热议问题