gpt4 book ai didi

ios - PhoneGap-iOS,如何显示带有红色按钮的对话框?

转载 作者:行者123 更新时间:2023-12-01 22:40:32 24 4
gpt4 key购买 nike

我正在 iOS 上使用 Phonegap,以下是显示对话框的代码:

navigator.notification.confirm(
'Which color do you like most?'
, confirmCB
, 'Title | Confirm'
, 'Green,Red'
);

我想显示带有红色取消按钮的确认对话框,但我不知道如何操作。请帮忙。

最佳答案

这对于phonegap来说是不可能的。

navigator.notification.confirm 使用原生的 UIAlertViewUIAlertView 按钮为蓝色/灰色,取消按钮为深蓝色/灰色

您可以尝试使用此库创建插件 BlockAlerts And ActionSheets

或者使用 javascript/css 警报替换

关于ios - PhoneGap-iOS,如何显示带有红色按钮的对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15897931/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com