Project: titanium
Issue TIMOB-18899: iOS: Support destructive alert style
The new iOS8 UIAlertViewController supports an destructive Ti.UI.AlertDialog style, which is specified just like the cancel property. {code} var win = Ti.UI.createWindow({ backgroundColor: "#fff" }); var button = Ti.UI.createButton({ title: "Show destructive dialog" }); var dialog = Ti.UI.createAlertDialog({ title: "Proceed", message: "Do you really want to proceed?", destructive: 0, cancel: 1, buttonNames: ["Destructive", "Cancel", "Proceed"] }); button.addEventListener("click", function() { dialog.show(); }); dialog.addEventListener("click", function(e) { Ti.API.info(e); }); win.add(button); win.open(); {code} Pull-Request: https://github.com/appcelerator/titanium_mobile/pull/6697
Story points: 5