EULA 的 UIAlertView 或模态弹出框?
我想知道人们为 EULA 页面做了哪些不同的事情?我们需要提供一些法律披露,并希望用户单击复选框表示他们同意这些条款。如果他们不同意,请勿让他们使用该应用程序。我知道在 iOS 5 中,他们向 UIAlertView 添加了一些新功能,但我没有看到复选框选项。我看到他们有 UIAlertViewStylePlainTextInput ,也许我可以用它来要求用户输入他们的名字,验证它,然后让他们使用该应用程序(如果它与我们的网络服务器上的凭据匹配)。
或者简单地呈现一个带有复选框按钮的模态弹出窗口,必须选中该按钮才能使弹出窗口消失。这个选项对我来说似乎更容易,但我不确定其他人做了什么。谢谢。
I was wondering what different things ppl have done for a EULA page? We have some legal disclosures to present and want the user to click a checkbox saying they agree to those terms. If they don't agree, don't let them use the app. I know in iOS 5, they added some new features to UIAlertView, but I don't see a checkbox option. I see they have the UIAlertViewStylePlainTextInput
that maybe I could use to ask the user to put in their name, verify it, and then let them use the app if it matches the credentials on our webserver.
Or simply present a Modal popover with a checkbox button that has to be checked for the popover to disappear. This option seems easier to me, but I'm not sure what other ppl have done. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
弹出窗口通常必须有一个呈现它的源(即另一个 UI 元素),这在这种情况下是不合适的,并且警报视图太小,无法合理显示包含大多数 EULA 的文本墙。
您最好的选择可能是一个包含文本视图(或者如果您想要更花哨的话,也可以是 Web 视图)的模态视图控制器,其
modalPresentationStyle
设置为UIModalPresentationFormSheet
。按下“是的,我阅读并接受”按钮,关闭视图控制器,然后您就可以开始了。A popover generally has to have a source (i.e. another UI element) that it’s being presented from, which wouldn’t be appropriate in this case, and an alert view is too small to reasonably display the wall-of-text that comprises most EULAs.
Your best option is probably a modal view controller containing a text view (or a web view if you want to be fancy), presented with its
modalPresentationStyle
set toUIModalPresentationFormSheet
. Stick a “yes, I read this and accept” button that closes the view controller in there and you should be good to go.