我正在 iOS 上使用 Phonegap,以下是显示对话框的代码:
navigator.notification.confirm(
'Which color do you like most?'
, confirmCB
, 'Title | Confirm'
, 'Green,Red'
);
我想显示带有红色取消按钮的确认对话框,但我不知道如何操作。请帮忙。
最佳答案
这对于phonegap来说是不可能的。
navigator.notification.confirm
使用原生的 UIAlertView
,UIAlertView
按钮为蓝色/灰色,取消按钮为深蓝色/灰色
您可以尝试使用此库创建插件 BlockAlerts And ActionSheets
或者使用 javascript/css 警报替换
关于ios - PhoneGap-iOS,如何显示带有红色按钮的对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15897931/