问题标签 [alertview]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
642 浏览

ios - 警告错误并动态显示隐藏的 UILabel

我有两个不同的问题,

  1. 我有一个隐藏在 viewDidLoad() 中的标签,后来我试图将隐藏值设置为 false 但它不起作用。
  2. 尝试显示警报但收到此错误“由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'应用程序试图以模态方式呈现活动控制器”

这是我下面的代码

0 投票
2 回答
600 浏览

ios - 是否有任何默认 API 在 iOS 中显示评级警报?

全部,

我想显示一个允许用户评价我的应用程序的警报。我得到了以下两个链接。但是,这并没有回答是否有任何 API 可用于显示警报。

http://www.brianjcoleman.com/tutorial-how-to-add-write-a-review-rate-us-feature-to-your-app/

“评价/评论此应用”的应用商店链接

我是否需要显示我自己的警报并将用户重定向到应用商店链接。或者任何其他可用的替代方法,以便用户可以在应用程序中评价我的应用程序?

问候,

巴特

0 投票
2 回答
123 浏览

button - 访问警报按钮

我已经实现了这样的警报:

现在我想设置score = 0按下“确定”的时间。有人可以帮助我吗?

0 投票
1 回答
503 浏览

ios - Presenting UIViewController from UITableViewCell: addChildViewController unrecognized selector sent to instance

I am trying to use the SCLAlertView library to display an alert view when you click on a button in a table view cell. I'm presenting it like this from my tableviewcell.m:

But when I click on the button the app crashes and gives me this error:

It also gives me this warning on the line where I actually show the alert:

I'm guessing I can't display a View Controller from my Table View Cell, but how could I solve this?

0 投票
2 回答
589 浏览

android - 在calabash android中查询弹出/对话框?

我看到你可以通过 ios 中的 alertview 查询,但是你如何在 calabash android 中查询警报?

我想验证此警报是否存在,我可以这样做element_exists()吗?

0 投票
2 回答
560 浏览

xcode - 特定 ViewController 的 AlertView 按钮

我正在研究如何执行 AlertView,当按下“OK”按钮时,它会将您带到一个名为 DiveNumberViewController 的特定视图控制器。

我已经完成了 AlertView 代码(见下文),但不知道如何将 OK 按钮添加到 DiveNumberViewController。任何帮助表示赞赏。

我正在使用 Xcode 6.3 和 Swift

0 投票
1 回答
84 浏览

ios - 即使 App 处于非活动状态也显示 Alertview

我刚刚看到无论如何都可以从 HomeScreen 的背景中显示 AlertViews。在此处输入图像描述

这是由应用程序“UP by Jawbone”触发的

有谁知道如何做到这一点?

0 投票
1 回答
959 浏览

ios - 如何在ios中检测系统弹出视图的“取消”按钮?

在为应用程序编写应用程序内购买时,连接 iTunes 商店时会显示活动指示器。当连接正常完成时,活动指示器可以停止,但以下情况除外:

有两个“取消”按钮:1。选择购买时,系统将显示带有“取消”按钮的iTunes Store登录视图。2.如果输入密码继续,如果该产品之前购买过,另一个“取消”按钮可以返回。

由于活动指示器在步骤 1 开始动画,如果按两个“取消”按钮中的任何一个将完成该过程,但活动指示器仍在旋转,因为我无法捕捉到取消按钮。

我已经尝试过“alertView”和“actionSheet”来获取buttonIndex,但它们没有在自定义alertView中工作。

任何建议将不胜感激。

0 投票
2 回答
75 浏览

ios - iphone - 自定义 UIAlertView 块效果

我正在制作一个类似于 iOS 中标准 alertView 的自定义 alertView。

为了制作块效果,我这样做了

它的工作原理类似于显示标准警报。

但它在 Tabbar 的区域中不起作用。

我如何能 ?

[显示警报视图之前] 在此处输入图像描述 [标准警报视图图像] 在此处输入图像描述

[自定义警报查看图像] 在此处输入图像描述

0 投票
1 回答
101 浏览

ios - AlertViewController in Parse

I am using the Parse login controller (default Parse one they offer) to implement a user login/pass for my app. It works fine, I am able to log in, register, and the whole thing. Only thing is that I want to add an alert if the password is wrong, right now it only println("Failed to login...") when the password is wrong, and the user has no idea that their password is wrong. I added an alert, but some reason it isn't appearing. The error message I get is "Warning: Attempt to present on whose view is not in the window hierarchy!"

Here is the alert I added to my code:

I think it might be because the parse default login screen I am using that they provided is not on my storyboard, but called from the Parse framework(?). How do I go about adding an alert view?

Thank you!

Josh