{ "id": "64169", "key": "TIMOB-3537", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "11356", "description": "Mobile 1.8.0 M03", "name": "Sprint 2011-24", "archived": true, "released": true, "releaseDate": "2011-06-20" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T15:52:29.000+0000", "created": "2011-04-15T03:46:25.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "defect", "ipad", "optiondialog" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-10-27T15:52:29.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": "{html}

On iPad only, when an options dialog is showed, if the window is\r\na modal window the app will crash.

\r\n

Sample code:

\r\n
\r\nvar win = Titanium.UI.createWindow({\r\n    backgroundColor:'#f5dcd2'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n    height:50,\r\n    width:200,\r\n    title:'chick here'\r\n});\r\n\r\nvar dialog = Titanium.UI.createOptionDialog({\r\n    options:['Save to Gallery', 'Email Photo', 'Share on Facebook', 'Cancel'],\r\n    destructive:3,\r\n    cancel:3,\r\n    title:'Share This Photo'\r\n});\r\n\r\nbtn.addEventListener('click', function(){\r\n    dialog.show();\r\n});\r\n\r\nwin.add(btn);\r\n\r\nwin.open({modal:true});\r\n
\r\n

A helpdesk ticket (XJH-91382-789) encountered this problem.

\r\n

Tested on 1.6.1, 1.6.2, and 1.7.0
\r\niPad Simulator 4.3

{html}", "attachment": [], "flagged": false, "summary": "iPad - OptionDialog crash if modal window", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "156738", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This was due to the root view controller's view not being in view during modal windows.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-14T13:14:20.000+0000", "updated": "2011-06-14T13:14:20.000+0000" }, { "id": "165455", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing. Passed on an iPad 4.3.5 and an iPad 2 4.3.5.", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-08T17:15:52.000+0000", "updated": "2011-09-08T17:15:52.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }