何时使用 UIAlertView 与 UIActionSheet
是否存在 UIAlertView 比 UIActionSheet 更好用的情况? 您会使用其中一种而不是另一种的典型场景是什么?
我正在编写一个导航栏按钮以在外部应用程序中打开 UIWebView,首先我开始编写 UIAlertView,然后我认为操作表可能更适合这种情况。
是否有可在不同情况下使用的正式指南? 谢谢。
Are there situations where a UIAlertView is better to use than a UIActionSheet? What are the typical scenarios where you would use one over the other?
I'm programming a navigation bar button to open a UIWebView in an external application, and at first I started programming a UIAlertView, then I thought that an action sheet might be better for this situation.
Are there any formal guidelines for which to use in different situations? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自 Apple 的 iPhone 人机界面指南:
From Apple's iPhone Human Interface Guidelines:
改进@Brad Larson 答案并更新信息(因为他的答案中的链接已损坏),这里有更多详细信息,当您应该使用警报、操作表或模式视图时:
来源:https://developer.apple.com/library /ios/documentation/UserExperience/Conceptual/MobileHIG/Alerts.html
Improving the @Brad Larson♦ answer and updating the informations (because the link in his answer is broken), here more details when you should be use an alert, an action sheet or a modal view:
Source: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/Alerts.html