{ "id": "110763", "key": "TIMOB-13000", "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": "2015-02-10T18:22:48.000+0000", "created": "2013-03-07T15:44:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "exalture", "ios" ], "versions": [], "issuelinks": [ { "id": "45811", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "144445", "key": "TIMOB-18545", "fields": { "summary": "iOS: ImageView load event is not triggered in 64 bits build", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-03-10T17:49:04.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": "An image won't trigger the load event if touchEnabled is set to false if the image property is set later (think custom caching or remote image)\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff'\r\n});\r\n\r\nwin.open();\r\n\r\nvar img = Ti.UI.createImageView({\r\n\t// image: 'http://thinkmobile.appcelerator.com/Portals/164416/images/appc_stacked.png?' + new Date().valueOf(),\r\n\ttouchEnabled:false\r\n});\r\nwin.add(img);\r\n\r\nimg.addEventListener('load', function() {\r\n\talert('img loaded');\r\n});\r\n\r\n\r\nsetTimeout(function(){\r\n\timg.image = '/sample.jpg'\r\n\t// img.image = 'http://thinkmobile.appcelerator.com/Portals/164416/images/appc_stacked.png?' + new Date().valueOf();\r\n},1000);\r\n{code}\r\n\r\nIt can be tested with both the attached image or the remote one.\r\n\r\nIn case the remote image is set in the constructor and the image is cached by Titanium (so no Date() at the end) the second time the app is opened will trigger, but this only because the image is already cached in the device by Ti.\r\n\r\nThe timeout simulates a custom caching where the images are grabbed on the device for offline usage.", "attachment": [ { "id": "35997", "filename": "sample.jpg", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-07T15:44:36.000+0000", "size": 21886, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: ImageView does not the trigger \"load\" event if touchEnabled is set to false", "creator": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK 3.1.x, ios 6.1", "comment": { "comments": [ { "id": "241311", "author": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested the scenario and found it valid.", "updateAuthor": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-08T07:13:10.000+0000", "updated": "2013-03-08T07:13:10.000+0000" }, { "id": "249698", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with sdk 3.2.0 in Nexus. Regardless of the value for touchEnabled, the load event is fired.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-01T11:50:44.000+0000", "updated": "2013-05-01T11:50:44.000+0000" }, { "id": "249701", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Why is this closed? The ticket is labeled **ios** and was tested on Nexus?", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-01T11:58:30.000+0000", "updated": "2013-05-01T11:58:30.000+0000" }, { "id": "249704", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Invalid test. Ticked is labeled iOS yet tested on a Nexus. ", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-01T12:14:38.000+0000", "updated": "2013-05-01T12:14:38.000+0000" }, { "id": "280218", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pending PR https://github.com/appcelerator/titanium_mobile/pull/4996", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-19T20:18:40.000+0000", "updated": "2013-11-19T20:18:40.000+0000" }, { "id": "345568", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.2\r\nAppcelerator Studio, build: 4.0.0.201502171827\r\nTitanium SDK build: 4.0.0.v20150306095010\r\nTitanium CLI, build: 3.5.0-dev\r\nAlloy: 1.6.0-alpha\r\nXcode 6.2\r\niPhone 6 (8.1)\r\n\r\nUsing provided code built to device, when the image loads the load event is triggered.\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-03-10T17:48:34.000+0000", "updated": "2015-03-10T17:48:34.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }