After rotating a CALayer using CABasicAnimation the layer jumps back to it’s unrotated position

Have you set the removedOnCompletion property of the rotation animation to NO, e.g., rota.removedOnCompletion = NO; That should leave the presentation layer where it was when the animation finished. The default is YES, which will snap back to the model value, i.e., the behavior you describe. The fillMode should also be set, i.e., rota.fillMode = … Read more

CABasicAnimation unlimited repeat without HUGE_VALF?

No, this is the way you’re supposed to do it according to the documentation. Setting this property to HUGE_VALF will cause the animation to repeat forever. Update for Swift: HUGE_VALF is not exposed to Swift. However, my understanding from this page is that HUGE_VALF is intended to be infinity (in fact, INFINITY is defined as … Read more

Is there a way to pause a CABasicAnimation?

Recently appeared Apple’s technical note QA1673 describes how to pause/resume layer’s animation. Pause and resume animations listing is below: -(void)pauseLayer:(CALayer*)layer { CFTimeInterval pausedTime = [layer convertTime:CACurrentMediaTime() fromLayer:nil]; layer.speed = 0.0; layer.timeOffset = pausedTime; } -(void)resumeLayer:(CALayer*)layer { CFTimeInterval pausedTime = [layer timeOffset]; layer.speed = 1.0; layer.timeOffset = 0.0; layer.beginTime = 0.0; CFTimeInterval timeSincePause = [layer convertTime:CACurrentMediaTime() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)