Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7317] IOS: ImageView fires the load event with state 'url' instead of 'image'

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-09-13T02:24:40.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/sSprint 2012-13 API
ComponentsiOS
Labelsapi, apidoc-escalate, module_imageview, parity, qe-review, qe-testadded, training
ReporterVishal Duggal
AssigneeVishal Duggal
Created2012-01-20T14:01:02.000+0000
Updated2013-12-10T06:15:01.000+0000

Description

Android has "image" and "images" for load states. IOS has "url" and "images". Since "url" property has been deprecated and replaced by "image", load event should fire with state "image"

Comments

  1. Vishal Duggal 2012-06-18

    https://github.com/appcelerator/titanium_mobile/pull/2418
  2. Max Stepanov 2012-06-20

    Test case:
       var win = Titanium.UI.createWindow({  
           backgroundColor:'#fff'
       });
        
       var imgView = Ti.UI.createImageView(
       {
           touchEnabled: false,    //if this is false: load event does not fire. If true it does!
           left:0,
           top:0,
           width: 100,
           height: 100
       });
        
       Ti.API.info("Adding load event listener");
        
       imgView.addEventListener('load', function(e){
           Ti.API.info("image loadded state is "+e.state);
       });
        
       imgView.image = 'http://docs.appcelerator.com/titanium/2.0/landing/appc_welcome.png';
        
       win.add(imgView);
       win.open();
       
  3. Rima Umbrasas 2012-08-15

    Verified fixed with : Mobile sdk-2.2.0.v20120810080115 Titanium Studio, build: 2.1.1.201207271312 Device: Ipad 5.1
  4. Anshu Mittal 2012-09-13

    Reopening to update labels
  5. Shameer Jan 2013-12-10

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4993

JSON Source