Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18830

iOS: ImageView start with blank when setting an array of images and long duration.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.4.1, Release 3.5.0, Release 3.5.1
    • Fix Version/s: Release 4.1.0
    • Component/s: iOS
    • Environment:

      SDK 3.4.* and 3.5.*
      iOS 8.2

    • Story Points:
      3
    • Sprint:
      2015 Sprint 09 SDK

      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.

      app.js

      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.*

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                sliang Shuo Liang
                Reviewer:
                Pedro
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19869
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration