Thursday, September 9, 2010

How to Animate with a UIView

[UIView beginAnimations:nil context:NULL];

// yaha apni  logic likh bacha =))

[UIview setAnimationDurattion:1:0];
[UIview setAnimationRepeatCount:10];
[UIview setAnimationRepeatAutoreverses];

CGpoint pos=myObject.center;
pos.y=200.0f;
pos.x-150.0f;
myobject=pos;



[UIView commitaAnimations];

No comments:

Post a Comment