{ "id": "145543", "key": "TIMOB-18899", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-26T00:23:06.000+0000", "created": "2015-03-08T12:28:17.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "alertDialog", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-14T22:10:58.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The new iOS8 UIAlertViewController supports an destructive Ti.UI.AlertDialog style, which is specified just like the cancel property. \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: \"Show destructive dialog\"\r\n});\r\n\r\nvar dialog = Ti.UI.createAlertDialog({\r\n title: \"Proceed\",\r\n message: \"Do you really want to proceed?\",\r\n destructive: 0,\r\n cancel: 1,\r\n buttonNames: [\"Destructive\", \"Cancel\", \"Proceed\"]\r\n});\r\n\r\nbutton.addEventListener(\"click\", function() {\r\n dialog.show();\r\n});\r\n\r\ndialog.addEventListener(\"click\", function(e) {\r\n Ti.API.info(e);\r\n});\r\n\r\nwin.add(button);\r\n\r\nwin.open();\r\n{code}\r\nPull-Request: https://github.com/appcelerator/titanium_mobile/pull/6697", "attachment": [], "flagged": false, "summary": "iOS: Support destructive alert style", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti.SDK 3.5.1.GA", "closedSprints": [ { "id": 529, "state": "closed", "name": "2015 Sprint 24 SDK", "startDate": "2015-11-21T01:30:12.670Z", "endDate": "2015-12-05T01:30:00.000Z", "completeDate": "2015-12-07T03:57:17.094Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "371497", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (from a long time ago): https://github.com/appcelerator/titanium_mobile/pull/6842", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-26T00:20:40.000+0000", "updated": "2015-11-26T00:20:40.000+0000" }, { "id": "412378", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T22:10:58.000+0000", "updated": "2017-03-14T22:10:58.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }