问题标签 [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.
variables - Swift Error while trying to print variable from alert-view textfield
I have this code here that runs an alertview and shows a textfield asking for the subject name
And then Im declaring the variables items and textf out of that function at the top of the code using this code
but the problem is that when I run my app and click on my button that shows the alertview and i type in my subject and click ok I get this error when it tries to print out string. It just prints out this error and it does not close my app
It says in the error the text I typed in but It is not adding it to the variable because when i print out the array items
it prints out
and not
animation - UIAlertView 在短暂延迟后显示“半透明”
我刚刚注意到我的 UIAlertView 显示“分两步”,它看起来令人不安,这就像一个显示错误而不是用户友好。
显示警报视图时,它首先在动画时显示“不透明”(不是半透明),然后变为半透明以便我们可以看穿它。
由于我的背景视图是丰富多彩的,我们确实看到了过渡,这对用户来说不是很友好。
有没有办法从一开始就将警报视图设置为半透明?
非常感谢,我希望我已经清楚了
托马斯
ios - iOS 在“Are you sure?”中确认 UIAlertView 设置应用
我需要一个数据重置开关我的应用程序,我想把它放在 iOS 的 Settings->Apps->MyAppName 部分。作为一种破坏性行为,我希望 iOS 提示用户进行确认。有没有办法从应用程序设置中显示警报视图样式确认框?
在应用程序中放置开关和警报视图对我来说没问题,我只是不知道如何从设置页面显示警报。到目前为止,谷歌搜索还没有产生任何结果。
谢谢
xcode - 有没有办法自定义系统警报?
我需要用我自己的替换要求允许访问用户位置的标准警报。可能吗?
或者有没有办法自定义系统警报?
非常感谢!;)
uitableview - 如何将布尔值从警报视图快速传递到自定义表格视图单元格
***更新:耶!它现在可以工作了!***我已经四处寻找了几个小时,但还没有找到我需要弄清楚的确切内容。使用objective c有一些答案,但我正在尝试Swift,但似乎无法翻译代码。(打赌你不知道我对此有多陌生!)我有一个简单的tableView
方法,它显示了一个数组中的运输类型列表。当每个单元格被按下时,会弹出一个警报,询问用户他们以前是否使用过这种交通工具。他们可以回答是或否。如果答案是肯定的,那么我想取消隐藏我的tableView
. 似乎它应该如此简单,但我正在扯掉我的头发。表格视图完美运行,警报完美运行;我似乎无法在我的tableView
.tableView
某处,但我不断收到错误,说不推荐我正在做的事情。
这些是我的自定义单元类中的插座:
这是我的表视图控制器:
ios - swift alertview textfield - 如何检索输入的文本
我正在显示一个警报视图,以便在选择时能够重命名一本书。我在检索用户输入时遇到问题。
这是我的代码:
我遇到麻烦的地方是:
我希望这是一个简单的修复,我感谢任何帮助。谢谢!
ios8 - UIAlertview is showing in portrait mode when screen is in landscape mode
I have an application that is configured to support Portrait mode only. But I have to show one screen (say abcViewController) in my application in landscape mode. When abcViewController screen is pushed ,orientation changes from Portrait mode to Landscape mode. In that abcViewController screen statusBar, all images ,buttons are shown in landscape mode but UIAlertView is displayed in PortraitMode. This means everything on view changes to landscape mode in abcViewController but UIAlertView doesn’t rotate to Landscape mode and remain in Portrait Mode. I would like the UIAlertView to follow the rules of the containing view controller and show same orientation as statusBar.
Note: I m running my app on iOS 8.0 using Xcode 5.0 and I am searching for the solution which supports Xcode 5.0
ios - 使用 shouldPerformSegueWithIdentifier 快速取消转场
我有一个检查登录是否正确的功能。如果没问题,我会显示下一个屏幕。如果用户不正确,我会取消 segue 并显示 alert 。
出现问题是因为当我在 shouldPerformSegueWithIdentifier 函数中调用此函数时,我给一个布尔变量赋值(如果用户正确与否),然后 shouldPerformSegueWithIdentifier 的返回值就是这个布尔值。问题是它不采用该值并保持默认值。这是我的代码:
提前致谢。
ios - 在 AlertView 中调用委托
我需要使用AlertView
,因为它也与iOS7兼容。
我试图在我的UITableViewController
:
但似乎他不能调用他的代表(func alertView()
)。
当我尝试启动应用程序时:正确
显示AlertView
,但是当我按下按钮时会发生以下情况:
“完成” - 没有任何反应
“取消” - 写nil
在日志中
谢谢。
ios - 重复显示特定日期的消息
我想总是显示某一天的警报视图,例如,应该总是在 8.00 注意星期一的时钟....所以如果我声明应用程序并且它是星期一 9:00,您将获得警报视图,并且每个星期一
我确定这一天的代码是:
有一个想法如何使它成为某人
谢谢于尔根