开发者

Dismissing current UIActionSheet

开发者 https://www.devze.com 2023-01-14 19:16 出处:网络
Is there a way t开发者_开发百科o dismiss the current UIActionSheet when you don\'t have access to the variable that holds it?

Is there a way t开发者_开发百科o dismiss the current UIActionSheet when you don't have access to the variable that holds it?

Apparently it makes its own window and makes it the key window, but [[[UIApplication sharedApplication] keyWindow]resignKeyWindow] doesn't seem to be working.


You shouldn't - you create the UIActionSheet, therefore you can keep a reference to it to dismiss it later.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号