Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1951] iOS: UIImageView images array, lacks @2x support.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-09T17:12:55.000+0000
Affected Version/sRelease 1.5.0, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterJeroen K.
AssigneeIngo Muschenetz
Created2011-04-15T03:06:22.000+0000
Updated2017-06-09T17:12:55.000+0000

Description

loading an array of images for an image animation with UIImageView like this:

var images = [];
images.push('images/img1.png');
images.push('images/img2.png');
var animation = Titanium.UI.createImageView({
   images:images,
   duration:100,
   repeatCount:0
});
Ignores the @2x versions of each image this way, running it without an extension (iOS 4 specific) doesnt show the images at all.

Comments

  1. Stephen Tramer 2012-07-26

    Confirmed valid against SDK 2.2.0.014b86f. Complete test code, using @2x images available from Kitchen Sink:
       var win = Ti.UI.createWindow();
       var images = [];
       images.push('images/dog.jpg');
       images.push('images/fence.jpg');
       var animation = Titanium.UI.createImageView({
          images:images,
          duration:100,
          repeatCount:10
       });
       win.add(animation);
       win.open();
       
  2. Lee Morris 2017-06-09

    Closing ticket due to time passed, any problems please open a new ticket.

JSON Source