{ "id": "113765", "key": "AC-2165", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-05-03T18:53:21.000+0000", "created": "2013-05-03T11:44:20.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:09.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "*Problem description*\r\nI have a view (index) that opens another modal view (settingsWindow) that contains some labels and textfields. When the cursor is in one of the textfields (i.e. the keyboard is shown) and I close the window (win.close()), then the app crashes after a short moment (without any error information in the console). If I blur all textfields first, to make the keyboard disappear, then the app does not crash!\r\n\r\n*settingsWindow.xml*\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*settingsWindow.js*\r\n{code:javascript}\r\nfunction okButtonClicked() {\r\n\t$.settingsWin.close();\r\n}\r\n\r\nfunction cancelButtonClicked() {\r\n\t$.settingsWin.close();\r\n}\r\n{code}\r\n\r\n*index.js*\r\n{code:javascript}\r\nfunction settingsButtonClicked() {\r\n\tvar settingsWin = Alloy.createController('settingsWindow').getView();\r\n\tsettingsWin.open();\r\n};\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Modal window crashes app when calling win.close method while keyboard is open", "creator": { "name": "vitr", "key": "vitr", "displayName": "Vitr", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "vitr", "key": "vitr", "displayName": "Vitr", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Alloy App, Titanium SDK 3.1.0, iOS 6.1, xCode 4.6.2", "comment": { "comments": [ { "id": "250116", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Vitr,\r\n\r\nPlease make sure the test case you provided is droppable and runnable. Your settigsWindow.xml contained several ellipsis for example, and there's no index code with a button to open the modal window.\r\n\r\nPlease go through the process of creating a new alloy project, dropping in the code you provided, and providing all the necessary code here.\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-03T18:53:21.000+0000", "updated": "2013-05-03T18:53:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }