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

iOS: View animate() not firing the CallBack with Ti.UI.createAnimation

    Details

      Description

      Using the following example we are unable to get the animate() function to call the completion CallBack function.
      The bottom portion of the screen should slowly turn green then go black again.

      app.js - Does not work

      Ti.UI.setBackgroundColor('#000');
      var win = Titanium.UI.createWindow({title:'Window'});
      var TheView=Ti.UI.createView({height:'100',
                                    bottom:-100, 
                                    backgroundColor:'green'});
      win.add(TheView);
       
      var RollUpObject=Ti.UI.createAnimation({bottom:1, duration: 2500});
      var RollDownObject=Ti.UI.createAnimation({bottom:-100, duration: 2500});
       
      win.open();
      TheView.animate(RollUpObject, 
                      function()
                      {
                        TheView.animate(RollDownObject)
                      });
      

      However if we create an object without using Ti.UI.createAnimation it works just fine!

      app.js - Works

      Ti.UI.setBackgroundColor('#000');
      var win = Titanium.UI.createWindow({title:'Window'});
      var TheView=Ti.UI.createView({height:'100',
                                    bottom:-100, 
                                    backgroundColor:'green'});
      win.add(TheView);
       
      var RollUpObject={bottom:1, duration: 2500};
      var RollDownObject={bottom:-100, duration: 2500};
       
      win.open();
      TheView.animate(RollUpObject, 
                      function()
                      {
                        TheView.animate(RollDownObject)
                      });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                peteberry@ewrinc.com Pete Berry
                Reviewer:
                Max Stepanov
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code