Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8311] iOS: load event never triggered when loading an ImageView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-04-24T13:44:51.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsiOS
Labelsapi, parity
Reporterprocess
AssigneeSabil Rahim
Created2012-03-10T14:59:47.000+0000
Updated2017-03-23T21:07:24.000+0000

Description

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

Comments

  1. process 2012-03-12

    seems to work with remote image but not for local ones
  2. process 2012-03-26

    I didn't test on Android but the problem was for ios
  3. Sabil Rahim 2012-04-24

    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.
  4. Lee Morris 2017-03-23

    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

JSON Source