{ "id": "153311", "key": "TIMOB-20016", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-12T23:24:51.000+0000", "created": "2015-11-19T08:41:18.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "reprod" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-07-19T21:21:35.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": "Hoping to have found an elegant solution for TIMOB-2908 we found out that the optional second [options-argument|https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.UI.Slider-method-setValue] for {{Ti.UI.Slider.setValue()}} does not work either.\r\n\r\n*Sample*\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttop: 100,\r\n\ttitle: 'Click me'\r\n});\r\n\r\nbtn.addEventListener('click', function(e) {\r\n\tslider.setValue(75, {\r\n\t\tanimated: false\r\n\t});\r\n});\r\n\r\nvar slider = Ti.UI.createSlider({\r\n\ttop: 200,\r\n\tmin: 0,\r\n\tmax: 100,\r\n\twidth: Ti.UI.FILL,\r\n\tvalue: 25\r\n});\r\n\r\nwin.add(btn);\r\nwin.add(slider);\r\n\r\nwin.open();\r\n{code}\r\n\r\n*Console*\r\n\r\n{code}\r\n[ERROR] Script Error {\r\n[ERROR] column = 17;\r\n[ERROR] line = 11;\r\n[ERROR] message = \"invalid method '(null)'\";\r\n[ERROR] sourceURL = \"file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/F67B333A-F4FE-4E2E-A67F-C862F77FF882/data/Containers/Bundle/Application/69B03816-179B-4781-9E3E-66F009E6A529/slider.app/app.js\";\r\n[ERROR] stack = \"[native code]\\nfile:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/F67B333A-F4FE-4E2E-A67F-C862F77FF882/data/Containers/Bundle/Application/69B03816-179B-4781-9E3E-66F009E6A529/slider.app/app.js:11:17\";\r\n[ERROR] }\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.Slider.setValue(val, {animated:true}) fails with error", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "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": "422294", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170609091155\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-19T20:40:02.000+0000", "updated": "2017-06-19T20:40:02.000+0000" }, { "id": "423639", "author": { "name": "designbymind", "key": "designbymind", "displayName": "Jason David Miller", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm also receiving the same error: \r\n{code:java}\r\nmessage = \"invalid method '(null)'\" \r\n{code}\r\n\r\n*Example:*\r\n{code:java}\r\nslider.setValue(50, {\r\n animated: true\r\n});\r\n{code}\r\n\r\n*Environment:*\r\n· iPhone 7 (10.3)\r\n· Studio 4.9.0.201705302345\r\n· Ti SDK 6.1.1.GA\r\n· Alloy 1.9.11\r\n· Xcode 8.3", "updateAuthor": { "name": "designbymind", "key": "designbymind", "displayName": "Jason David Miller", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-07T05:54:33.000+0000", "updated": "2017-07-07T05:54:33.000+0000" }, { "id": "423731", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/9209", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-09T03:39:18.000+0000", "updated": "2017-07-09T03:39:18.000+0000" }, { "id": "424406", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verifying that has been fixed as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.2.0.v20170719120805\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-19T21:21:35.000+0000", "updated": "2017-07-19T21:21:35.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }