Questions tagged [camediatiming]
9 questions
12
votes
1 answer
What's the effect of setting timeOffset when animating?
The CAMediaTiming Protocol defines a timeOffset property. Now, they say it's a time offset. It sounds straightforward, but howefer, when I set it to 15.0 for example, the animation still imediately starts. The timeOffset doesn't seem to have any…

Thanks
- 40,109
- 71
- 208
- 322
4
votes
1 answer
Using CAMediaTimingFunction to animate a UIView NSLayoutConstraint
I'm currently animating one of my constraints in an animation block, however I wish to customise the animation type - further to that given by the preset UIVIewAnimationOptions:
UIView.animateWithDuration(2.0, delay: 0.3, options:…

Fudgey
- 3,793
- 7
- 32
- 53
2
votes
1 answer
Custom animation: easing out
I have successfully created a custom animation in a drawing in a UIView by using a repeating Timer to increment the alpha of the drawing every few milliseconds.
Now, I want to achieve an easing out animation (deceleration) with my drawing. I would…
user10015343
2
votes
1 answer
Change Speed of Explicit Animation using CAAnimation.CurrentMediaTime()
I'm trying to change the speed of an Explicit iOS Animation (so think CABasicAnimation or CAKeyFrameAnimation) using CAAnimation.CurrentMediaTime. This method is much better than stoping the animation, then restarting it with a new duration. I'm…

LampShade
- 2,675
- 5
- 30
- 60
1
vote
1 answer
Calculating polynomial coefficients for unitized cubic bezier curve
I'm analyzing this piece of code by Apple:
http://opensource.apple.com/source/WebCore/WebCore-955.66/platform/graphics/UnitBezier.h
The part I specifically don't understand is this segment, where they calculate the polynomial coefficients for the…

Shaun Budhram
- 3,690
- 4
- 30
- 41
1
vote
1 answer
Cannot control animation timing of a UITableViewCell's sublayer
The CAMediaTiming protocol defines property timeOffset which is supposed to set additional time offset of an animation or animated layer. By setting layer.speed = 0 it's possible to manually control animation timing by setting layer.timeOffset to a…

wczekalski
- 720
- 4
- 21
0
votes
0 answers
How to seek on iOS core animation using UISlider
I've created animation ( CABasicAnimation(keyPath = "position.x") ) using 40 images. per image duration is 3 seconds. So, total duration of the core animation is 120 seconds inside a CALayer.
I'm using a UISlider to perform seek operation . For…

sagarthecoder
- 137
- 1
- 9
0
votes
1 answer
Confused with layer freezing
I created layer animation group (CAAnimation group).
group.animations = [
anim1(customUnderlyingLayer: customUnderlyingLayer, semiEllipse: semiEllipse, duration: 0.1,timingCurve: CAMediaTimingFunction(controlPoints: 0, 1.64, 1, 1)),
…

Ninja
- 309
- 7
- 26
0
votes
1 answer
Custom animation using cubic Bezier function
I am trying to create a custom animation that has the same animation curve as if I were using a CAMediaTimingFunction (I am doing the animation in OpenGL, so I am unable to use this). I would also like to stay away from UIKit in general as I would…

Hamish
- 78,605
- 19
- 187
- 280