How can I set the delay of开发者_如何学JAVA my implicit animation in core animation? I'm surprised that there is no kCATransactionAnimationDelay.
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)
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.
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.
精彩评论