iphone - How to let a view rotate forever? -


Is there a way to rotate a scene forever with a specified speed? I need to talk about an indicator I know that this weird Lxxxxx00ff is continuous (it does not remember at all) that is "forever".

itemprop = "text">

You can use HUGE_VAL for floating value (if I remember correctly, animation To repeat the properties are float)

You can create an animation object with + animation: method to set up AAAA with API :

  CABasic animation * animation = [with CABasic animation animation: @ "rotation.z"]; Animation.frame value = [nsnumber number blast: 0.0f]; Animation.tv = [NSNumber Number Blast: 2 * MOPI]; Animation.duration = 3.0f; Animation. RepeatCount = HUGE_VAL; [RotView.layer addAnimation: Animation Fork: @ "My Animation"];  

If I remember correctly that this type of rotation is only impossible due to UIVive animation, rotation on 360 degree (2 * M_PI radians) is not suitable for any rotation Are there.


Comments