{ "id": "142031", "key": "TIMOB-18283", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-23T16:22:25.000+0000", "created": "2014-12-22T19:48:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "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" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-15T01:18:38.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": "Test Code\r\n{code:javascript}\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#fff',\r\n fullscreen:true,\r\n layout:'vertical'\r\n});\r\n\r\nvar theImages = [\r\n'images/campFire01.gif',\r\n'images/campFire02.gif',\r\n'images/campFire03.gif',\r\n'images/campFire04.gif',\r\n'images/campFire05.gif',\r\n'images/campFire06.gif',\r\n'images/campFire07.gif',\r\n'images/campFire08.gif',\r\n'images/campFire09.gif',\r\n'images/campFire10.gif',\r\n'images/campFire11.gif',\r\n'images/campFire12.gif',\r\n'images/campFire13.gif',\r\n'images/campFire14.gif',\r\n'images/campFire15.gif',\r\n'images/campFire16.gif',\r\n'images/campFire17.gif',\r\n];\r\n\r\n\r\nvar container = Ti.UI.createView({height:Ti.UI.SIZE,top:20,layout:'horizontal',width:Ti.UI.SIZE});\r\n\r\nvar b1 = Ti.UI.createButton({title:'START',width:70});\r\n\r\nvar label = Ti.UI.createLabel({text:'Reverse:',left:10});\r\nvar sw = Ti.UI.createSwitch({value:false,left:10});\r\n\r\ncontainer.add(b1);\r\ncontainer.add(label);\r\ncontainer.add(sw);\r\n\r\nwin2.add(container);\r\n \r\nvar image2 = Titanium.UI.createImageView({\r\n repeatCount:3,\r\n images: theImages,\r\n width:160,\r\n height:240,\r\n top:5,\r\n borderWidth:1,\r\n borderColor:'black'\r\n});\r\n \r\nwin2.add(image2);\r\n\r\nvar checkIndex;\r\nvar count;\r\n\r\nb1.addEventListener('click',function(e){\r\n if(image2.animating == true) {\r\n image2.stop();\r\n } else {\r\n image2.reverse = sw.value;\r\n if(image2.reverse == true) {\r\n checkIndex = 0;\r\n } else {\r\n checkIndex = theImages.length - 1;\r\n }\r\n count = 0;\r\n image2.start();\r\n\r\n }\r\n});\r\n\r\n\r\nvar l2 = Ti.UI.createLabel({top:5});\r\nvar l3 = Ti.UI.createLabel({top:5});\r\n\r\nwin2.add(l2);\r\nwin2.add(l3);\r\n\r\nimage2.addEventListener('change',function(e){\r\n l2.text = 'Showing Index '+e.index;\r\n if(e.index == checkIndex) {\r\n count++;\r\n l3.text = 'Completed Loop '+count;\r\n }\r\n});\r\n \r\nimage2.addEventListener('stop',function(e){\r\n l3.text = 'STOPPED';\r\n sw.enabled = true;\r\n b1.title = 'START';\r\n});\r\n\r\nimage2.addEventListener('start',function(e){\r\n l3.text = 'STARTED. Loop Count '+image2.repeatCount;\r\n sw.enabled = false;\r\n b1.title = 'STOP';\r\n});\r\n\r\nwin2.open();\r\n{code}", "attachment": [ { "id": "53331", "filename": "images.zip", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-22T19:50:09.000+0000", "size": 1019025, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: ImageView repeatCount is not honored", "creator": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 272, "state": "closed", "name": "2014 Sprint 25 SDK", "startDate": "2014-12-08T22:49:31.264Z", "endDate": "2014-12-22T01:00:00.000Z", "completeDate": "2015-01-05T18:18:28.523Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "337352", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resources for test", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-22T19:50:09.000+0000", "updated": "2014-12-22T19:50:09.000+0000" }, { "id": "337353", "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/6525", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-22T19:53:12.000+0000", "updated": "2014-12-22T19:53:12.000+0000" }, { "id": "339165", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on :\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.6.0.v20150114112521\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPhone 6 (8.1), iPad Air 2 (8.2b4)\r\n\r\nUsing the attached code and images ran on both devices, the image repeated fro the correct number of times.\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-15T01:18:25.000+0000", "updated": "2015-01-15T01:18:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }