在 iPad 上隐藏 UIActionSheet
我刚刚收到一封来自 Apple 的邮件,称我的 iPad 应用程序被拒绝,因为我的“应用程序包含未指向显示它们的元素的弹出框元素,并且屏幕上一次可见多个弹出框元素”。
问题是,我调用了一个操作表,当我从一个视图切换到另一个视图时,该操作表仍然可见,并且可以一次调用操作表。 现在我问自己如何在视图更改时或打开另一个操作表时隐藏操作表。
I just got a mail from apple that my iPad app was rejected because my 'app contains popover elements that didn't point to the element that revealed them and more than one popover element visible onscreen at a time'.
The problem is that I call an actionsheet which is still visible when I switch from one view to another and that there can be called to actionsheets at a time.
Now I ask myself how I can hide an actionsheet on a view change or when another actionsheet is opend.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过检查
isVisible
解决了当您点击同一按钮时工作表多次显示的问题,如下所示:希望有所帮助。
I solved the issue with the sheet showing multiple times when you tap the same button by checking
isVisible
, as in the following:Hope that helps.