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

iOS: Animate object's opacity with animate({}) method don't change the opacity property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.1.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Appcelerator Studio, build: 4.8.1.201612050850
      Titanium SDK 6.0.2 , tested on iOS

      Description

      Animate view's opacity with animate({}) method don't change the opacity property of the view.
      Test code and video attached

       
      var win = Ti.UI.createWindow({
          backgroundColor: "white"
      });
       
      var view = Ti.UI.createView({
      	width : 100,
      	height : 100,
      	backgroundColor : "red",
      	opacity : 1.0
      });
       
       
      var label = Ti.UI.createLabel({
      	width : Ti.UI.FILL,
      	top : 30,
      	color : "red",
      	textAlign : "center",
      	font : {
      		fontSize : 20
      	}
      });
       
       
      var buttons = Ti.UI.iOS.createTabbedBar({
      	bottom : 30,
      	labels : ["Without animate","With animate"],
      	index : 0,
      	tintColor : "red"
      });
       
      var temp = true;
      setInterval(function(e){
      	
      	if(temp){
      		if(buttons.index == 0)
      			view.opacity = 0.0;
      		else
      			view.animate({ opacity : 0.0 , duration : 0});
      	}else{
      		if(buttons.index == 0)
      			view.opacity = 1.0;
      		else
      			view.animate({ opacity : 1.0 , duration : 0});
      	}
      	temp = !temp;
      	
      	label.text = "view opacity: " + view.opacity;
      	
      },200);
       
       
       
      win.add(label,view,buttons);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              nicolomonili nicolomonili
              Reviewer:
              Vijay Singh
              Tester:
              Samir Mohammed
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration