How to make a uiactionsheet dismiss when you tap outside eg above it?

后端 未结 10 1161
清酒与你
清酒与你 2020-12-16 00:48

How do i make a uiactionsheet dismiss when you tap outside eg above it? This is for iPhone. Apparently the ipad does this by default (I may be wrong).

10条回答
  •  無奈伤痛
    2020-12-16 01:17

    You can't do that by tapping outside because action sheet covers whole view some transparent black view with buttons in form of sheet in iphones but in ipad this behavior presents by default .

    so for touching outside you cant call touch methods. so i don't think so you can do in this way and also when apple provide a cancel button in action sheet then why not you do use that button rather than this.

提交回复
热议问题