{ "id": "172014", "key": "TIMOB-26268", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-24T17:21:38.000+0000", "created": "2018-08-05T19:50:46.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-24T17:21:47.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": "Currently, we only support the {{refreshControl}} property on the Ti.UI.ScrollView for iOS 10+. We can support it for earlier versions as well:\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: win\r\n});\r\n\r\nvar refreshControl = Ti.UI.createRefreshControl();\r\n\r\nrefreshControl.addEventListener('refreshstart', function () {\r\n setTimeout(function () {\r\n refreshControl.endRefreshing();\r\n }, 2000);\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n refreshControl: refreshControl,\r\n layout: 'vertical'\r\n});\r\n\r\nscrollView.add([\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),\r\n Ti.UI.createView({ height: 30 }),\r\n])\r\n\r\nwin.add(scrollView);\r\nnav.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Make RefreshControl on ScrollView available on iOS < 10", "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": null, "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "439805", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10233", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-05T19:54:31.000+0000", "updated": "2018-08-05T19:54:31.000+0000" }, { "id": "440694", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Verified improvement in SDK version: {{7.4.0.v20180810061237}}. Able to view the {{RefreshControl}} on a {{ScrollView}}. \r\n\r\n*FR Passed (Test Steps):*\r\n# Created a titanium application with the test case above\r\n# Ran the program\r\n# Pulled down scroll view \r\n# Able to see the {{RefreshControl}}\r\n# Tested on iOS 9.3 and 11.2\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4\r\niphone 6 simulator (9.3)\r\niphone 6 simulator (11.2)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13\r\nNode.js Version: 8.9.1\r\nXcode 9.2\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-13T13:02:00.000+0000", "updated": "2018-08-13T13:02:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }