[TIMOB-8679] iOS: ImageView "load" event does not fire with local image
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-13T14:07:13.000+0000 |
Affected Version/s | Release 1.8.3 |
Fix Version/s | Release 2.1.0, Release 2.0.1, Sprint 2012-08, Release 1.8.3 |
Components | iOS |
Labels | SupportTeam, api |
Reporter | Varun Joshi |
Assignee | Vishal Duggal |
Created | 2012-04-11T10:26:00.000+0000 |
Updated | 2012-04-30T21:48:18.000+0000 |
Description
Problem
The load event listener does not fire in the 1.8.3 build of April 10, 2012. It does not work for the April 5 and April 4, 2012 versions too.
Steps to Reproduce
1. Run the sample code below:
{noformat}
var win=Ti.UI.createWindow({
backgroundColor : 'blue'
});
var imageView = Ti.UI.createImageView({
image: 'KS_nav_ui.png'
});
var imageViewEventListener = function (e) {
Ti.API.info('I am in the load');
};
imageView.addEventListener('load', imageViewEventListener);
win.add(imageView);
win.open();
{noformat}
Expected Result
The API info statement in *imageViewEventListener* should get printed on the console.
Comments
JSON Source
Leaving the ticket open for PR against 2_0_X and master
Tested with 2.0.1.v20120412163344 with iPad 5.1 and iPhone 3gs 4.3