{ "id": "146923", "key": "TIMOB-18830", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-05-05T06:35:28.000+0000", "created": "2015-04-15T03:25:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "animation", "array", "blank", "imageView" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-06-26T18:53:26.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": "h5.Description\r\nWhen set image array to a imageView, it will start with a blank page. The longer setting for duration, the more obvious blank is.\r\n\r\nh5.Reproduce Step:\r\nSimple run the test case.\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:\"white\"\r\n});\r\n\r\nvar array =[\"/1.png\",\r\n\t\t\"/2.png\"];\r\n\t\t\t\r\nvar topPic = Ti.UI.createImageView({\r\n\t\twidth: Ti.UI.SIZE, \r\n\t\theight: Ti.UI.SIZE, \r\n\t\ttop: '10dp',\r\n\t\t\r\n\t\timages: array, \r\n duration: 10000,\r\n\t\trepeatCount: 4\r\n});\r\n\t\t\r\nwin.add(topPic);\r\n\r\n//Start top pic animation\r\ntopPic.addEventListener('load', function(e){\r\n\tTi.API.info(\"Loaded\");\r\n\ttopPic.start();\r\n});\r\n\t\t\t\t\t\t\r\ntopPic.addEventListener('start', function(e){\r\n\tTi.API.info(\"Started\");\r\n});\r\n\t\r\ntopPic.addEventListener('change', function(e){\r\n\tTi.API.info(e.index);\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nh5.Expect Result\r\nThe images should display right after load finished, then animate to another.\r\n\r\nh5.Actual Result\r\nThe imageView will keep blank at beginning, Like setting duration: 10000, the symptom will be more obvious. \r\n\r\nh5.Note:\r\nThis happens on both SDK 3.4.* and 3.5.* ", "attachment": [], "flagged": false, "summary": "iOS: ImageView start with blank when setting an array of images and long duration. ", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 3.4.* and 3.5.*\r\niOS 8.2", "closedSprints": [ { "id": 398, "state": "closed", "name": "2015 Sprint 09 SDK", "startDate": "2015-04-25T00:00:00.000Z", "endDate": "2015-05-09T00:00:00.000Z", "completeDate": "2015-05-11T14:11:17.028Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "350134", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this issue using:\r\n\r\nStudio 4.0.0.201504170803\r\nSDK 4.0.0.Beta3\r\nAppc NPM 0.3.44\r\nAppc CLI 0.2.250\r\n\r\nThere is a very noticeable delay before the images from the array are shown.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-20T16:45:13.000+0000", "updated": "2015-04-20T16:45:13.000+0000" }, { "id": "351411", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6817", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-01T18:28:03.000+0000", "updated": "2015-05-01T18:28:03.000+0000" }, { "id": "351630", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT passed. PR Merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-05T06:35:16.000+0000", "updated": "2015-05-05T06:35:16.000+0000" }, { "id": "356093", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11\r\nStudio 4.1.0.201506251905\r\nTi SDK 4.1.0.v20150624142618\r\nAppc NPM 4.1.0-1\r\nAppc CLI 4.1.0-3\r\nTi CLI 4.0.1\r\nAlloy 1.6.2\r\nNode v0.10.37\r\nJava 1.7.0_45\r\n\r\nImages appear immediately, even when using a very large duration setting.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-26T18:53:26.000+0000", "updated": "2015-06-26T18:53:26.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }