Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Transformation work in simulator but not on devices

We are using transform/animation to scale an image on a View in the app. It works flawless in the simulator but when installed on devices it hangs or just displays the image 100% size and no animation and scaling occurs. Why does this happen?

— asked November 22nd 2010 by Andreas Kviby
  • animation
  • iphone
  • transformation
1 Comment
  • Andreas

    I think you will need to post an example that exhibits this behaviour before anyone can help you with it.

    — commented November 22nd 2010 by Paul Dowsett

1 Answer

  • Here is an sample that should put the animated image to scale 0 but the animation doesnt work on the device

    var lockimage = Titanium.UI.createImageView({
    var t3 = Ti.UI.create2DMatrix();
    t3 = t3.scale(0);
    var a3 = Titanium.UI.createAnimation();
    a3.transform = t3;
    a3.duration = 50;

    Any ideas?

    — answered November 22nd 2010 by Andreas Kviby
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.