{ "id": "165497", "key": "AC-4757", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-01-27T19:04:38.000+0000", "created": "2017-01-27T18:47:28.000+0000", "labels": [ "ios", "ios-10", "optionaDialog", "titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-01-27T19:40:22.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "optionDialog with 100+ options slows to a crawl on iOS 10.2+. Showing a optionDialog with many options loads very slowly and once loaded scrolls very slowly as well. I have tested the same code on varying versions of the Titanium SDK all with the same result, the key seems to be something changed between iOS 10.1 and 10.2 as it works much better in 10.1. This issue is not seen android as everything loads instantly\r\n\r\n\r\n{code:java}\r\nvar c = 0;\r\nvar options = [];\r\n \r\nwhile(options.length<200){\r\n options.push(c);\r\n c++;\r\n}\r\n\r\nvar oDialog = Ti.UI.createOptionDialog({\r\n options:options,\r\n title: 'Options',\r\n});\r\n\r\noDialog.addEventListener('click', function(e) {\r\n alert(options[e.index]);\r\n});\r\n\r\nfunction doClick(e) {\r\n oDialog.show();\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "optionDialog with 100+ options slows to a crawl iOS 10.2+", "creator": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "405513", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As an added note, the issue is still present in iOS 10.3 Public Beta 1", "updateAuthor": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-27T18:50:55.000+0000", "updated": "2017-01-27T18:50:55.000+0000" }, { "id": "405514", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey Mike, thanks for the ticket! Two things here:\r\n1. You should reaaaaally not use a 100 options in an option-dialog. It's supposed to handle 2-5 actions, very unusually a bit more. Use the {{Ti.UI.ListView}} for those cases\r\n2. It sounds like an iOS bug which we can't influence at our end. Please file a radar at Apple so they are aware of it. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-27T19:04:31.000+0000", "updated": "2017-01-27T19:04:31.000+0000" }, { "id": "405520", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested your sample code in iOS 10.2 simulator. For me the options load withing 3s. And I can scroll fine. In Android the options load instantly. Tested with SDK 6.0.1.GA.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-01-27T19:23:10.000+0000", "updated": "2017-01-27T19:23:10.000+0000" }, { "id": "405521", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It runs significantly better on the simulator, please try it on a device.", "updateAuthor": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-27T19:25:23.000+0000", "updated": "2017-01-27T19:25:23.000+0000" }, { "id": "405529", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~cliff_stander], As Hans mentioned, it's an iOS bug which we can't influence at our end. Please file a radar at Apple so they are aware of it. Thanks!", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-01-27T19:40:22.000+0000", "updated": "2017-01-27T19:40:22.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }