Problem Description
load event is never triggered when loading an imageView with Ti sdk 2.0 ( [INFO] jira-test/1.0 (2.0.0.v20120308234731.f0091c3) )
I thing it was since a push request was adopted for fixing a bug of the layout of a view that breaks when adding/removing subviews on a simple view in sdk 1.8.2.
Actual results
the load event is not thrown in ios (it works on android)
Expected results
load event working fine
Test case
1. Create a new mobile project
2. Add the code :
var win = Titanium.UI.createWindow({
title:'Load test',
backgroundColor:'#fff'
});
var img = Ti.UI.createImageView({image:'a-simple-image.jpg'});
img.addEventListener('load', function(){Ti.API.info('Yeah ! the image is loaded :) ');});
win.add(img);
win.open();
3. Run for ios
Extra info
this is working fine in android
seems to work with remote image but not for local ones
I didn't test on Android but the problem was for ios
The event seems to be firing properly .. Tested on iPhone Simulator 4.3 , 5.0 and 5.1 Tested on iPad 2 running 5.0.1 Ran on Xcode 4.3 on MAC OSX 1.7.3 against [master](https://github.com/appcelerator/titanium_mobile/commit/f2349a3). Marking bug as cannot Reproduce.
Can verify this ticket as "Cannot Reproduce". Tested with the following environment; Simulator (10.2) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.0.3 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80