Daniel
Daniel

Reputation: 6842

CATransaction Delay

How can I set the delay of my implicit animation in core animation? I'm surprised that there is no kCATransactionAnimationDelay.

Upvotes: 3

Views: 5411

Answers (3)

Greg Maletic
Greg Maletic

Reputation: 6337

Since you're doing an implicit animation, would you be better off just using UIView-based animation? It easily allows delays, and unless I'm mistaken, gives you access to exactly the same functionality you find when using implicit Core Animations.

Upvotes: 2

Lily Ballard
Lily Ballard

Reputation: 185831

To the best of my knowledge, you can't. You need to create explicit CAAnimation objects instead to represent your animations if you need this kind of control over it.

Upvotes: 6

deanWombourne
deanWombourne

Reputation: 38475

Try this

// Start in 5 seconds
theAnimation.beginTime = CACurrentMediaTime()+5;

CAAnimation objects implement the CAMediaTiming protocol so you have a few properties to play around with in there.

(answer taken from here)

Upvotes: 16

Related Questions