子类化 UIAlertView 以接受用户输入是否违反 HIG?

发布于 2024-11-26 02:59:29 字数 711 浏览 1 评论 0原文

我见过很多answers 详细说明了如何在 UIAlertView 上接受用户输入,但我想知道这样做是否违反了 Apple iOS 人机界面指南。

根据 警报

避免创建不必要的警报...[警报]通常是不必要的,如果它们...[要求]确认用户启动的操作。要获得用户发起的操作的确认,即使是删除联系人等潜在风险的操作,您也应该使用操作表。

但是,我希望使用警报视图来提示用户输入密码,就像用户从 App Store 购买应用程序时 Apple 所做的那样。

我将不胜感激任何意见!

I've seen a lot of answers out on SO detailing how to accept user input on an UIAlertView, but I was wondering if doing so violates Apple's iOS Human Interface Guidelines.

According to the section on Alerts,

Avoid creating unnecessary alerts... [alerts] are usually unnecessary if they... [a]sk for confirmation of user-initiated actions. To get confirmation for an action the user initiated, even a potentially risky action such as deleting a contact, you should use an action sheet.

However, I wish to use a Alert view to prompt the user to input a password, much like Apple does when a user purchases an app from App Store.

I'd appreciate any input!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

在梵高的星空下 2024-12-03 02:59:29

由于 Apple 在许多地方都这样做,我认为这并没有违反 HIG。我也可以自信地说这句话,因为我在 WWDC 学到了一些东西。我建议您查看 Apple 开发者网站上 UIAlertView 上 iOS 5 预发行文档的内容(不幸的是,我不能在这里透露更多信息,因为它处于 NDA 之下)。

As Apple does this in many locations, I don't think it violates the HIG. I can also say this with confidence because of something I learned at WWDC. I would advise you to look on the Apple Developer site under the prerelease documentation for iOS 5 on UIAlertView (unfortunately I can't say more on here since it is under NDA).

离不开的别离 2024-12-03 02:59:29

我可以看到他们会如何拒绝他们自己的应用程序执行的某些操作,例如使用未记录的 API 登录(如 Karithikeyan 所说)。不过,我认为这里和那里奇怪的警报视图不会损害您进入商店的机会。(用于输入)

(举一个例子,说明我如何以不同的方式使用警报视图而没有问题)。
我有时会使用警报视图作为加载指示器。我得到警报视图并在其旋转时将指示器放入其中,而且我这样做也没有遇到任何问题。

我的建议:克制地使用它,但不要害怕拒绝。如果看起来使用正确,那么它很可能是正确的。

I can see how they would reject it for something their own app does such as login using an undocumented API (as said by Karithikeyan). However I think the odd alert view here and there can't harm your chances of getting in the store.(Used for input)

(To give an example of how I have used the Alert View differently without problems).
I sometimes use the alert view for my loading indicators. I get the alerview and put the indicator inside while it spins, and I have had no problems doing this either.

My advice: use it with restraint but do not fear rejection. If it seems right to use, it probably is.

鯉魚旗 2024-12-03 02:59:29

据我所知,

我不认为苹果会拒绝我在应用程序商店中发布的应用程序之一,因为它使用 UIAlertView 提示用户输入登录凭据,

我的投票是你可以接受它!

确保您使用 addTextFieldWithValue 此方法来创建您的警报视图 bz 这是未记录的 API,您将被拒绝。

所以最好使用正常的方法来设计你的警报!

As far as i know ,

i dont think so that apple will reject bcoz my one of my app released in the appstore for using a UIAlertView to prompt user to enter login Credentials ,

my vote is you can go with it!

be sure you are using addTextFieldWithValue this method to create your alertview bz this is undocumented API , you will get rejected.

so better use normal methods to design your alert!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文