Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18830] iOS: ImageView start with blank when setting an array of images and long duration.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-05-05T06:35:28.000+0000
Affected Version/sRelease 3.4.1, Release 3.5.0, Release 3.5.1
Fix Version/sRelease 4.1.0
ComponentsiOS
Labelsanimation, array, blank, imageView
ReporterShuo Liang
AssigneeVishal Duggal
Created2015-04-15T03:25:02.000+0000
Updated2015-06-26T18:53:26.000+0000

Description

Description

When set image array to a imageView, it will start with a blank page. The longer setting for duration, the more obvious blank is.

Reproduce Step:

Simple run the test case.
var win = Ti.UI.createWindow({
	backgroundColor:"white"
});

var array =["/1.png",
		"/2.png"];
			
var topPic = Ti.UI.createImageView({
		width: Ti.UI.SIZE, 
		height: Ti.UI.SIZE,  
		top: '10dp',
		
		images: array, 
                duration: 10000,
		repeatCount: 4
});
		
win.add(topPic);

//Start top pic animation
topPic.addEventListener('load', function(e){
	Ti.API.info("Loaded");
	topPic.start();
});
						
topPic.addEventListener('start', function(e){
	Ti.API.info("Started");
});
	
topPic.addEventListener('change', function(e){
	Ti.API.info(e.index);
});

win.open();

Expect Result

The images should display right after load finished, then animate to another.

Actual Result

The imageView will keep blank at beginning, Like setting duration: 10000, the symptom will be more obvious.

Note:

This happens on both SDK 3.4.* and 3.5.*

Comments

  1. Eric Wieber 2015-04-20

    I was able to reproduce this issue using: Studio 4.0.0.201504170803 SDK 4.0.0.Beta3 Appc NPM 0.3.44 Appc CLI 0.2.250 There is a very noticeable delay before the images from the array are shown.
  2. Vishal Duggal 2015-05-01

    Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6817
  3. Chee Kiat Ng 2015-05-05

    CR and FT passed. PR Merged.
  4. Eric Wieber 2015-06-26

    Verified fixed, using: MacOS 10.11 Studio 4.1.0.201506251905 Ti SDK 4.1.0.v20150624142618 Appc NPM 4.1.0-1 Appc CLI 4.1.0-3 Ti CLI 4.0.1 Alloy 1.6.2 Node v0.10.37 Java 1.7.0_45 Images appear immediately, even when using a very large duration setting.

JSON Source