Label rotation not working in Titanium -


in following code, want first rotate label 270 degree, set anchor point , again rotate angle.

however, second rotation works , first rotation ignored. how can solve ?

var mylabels = []; (var i=0; < 26; i++) {  var singlelabel = titanium.ui.createlabel({     backgroundcolor:'red',     text: i+1,     top: 100,     width: 35,     height:20,  });   var rotatefirst = titanium.ui.create2dmatrix().rotate(270);  singlelabel.transform = rotatefirst;      singlelabel.setanchorpoint({x: 0.5,y:11.11});     var rotate1 = titanium.ui.create2dmatrix().rotate((13.84*i));;     singlelabel.transform = rotate1;    mylabels.push(singlelabel);    view.add(singlelabel); } 

please use animations instead of setting transform property.

you can chain them using animation start / complete events


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -