Questions tagged [cakeyframeanimation]

Describes an animation that provides keyframe interpolation of a layer property in Apple's Core Animation framework.

CAKeyframeAnimation is a Core Animation animation type that provides keyframe interpolation of a layer property. Instances should be created with the initializer animationWithKeyPath:.

For more information, see the Apple Documentation for CAKeyframeAnimation.

235 questions
0
votes
1 answer

Jumpy CADisplayLink Animation

As detailed in a previous post (Here), I'm creating an animation that starts at an initial angle and moves to an ending angle. I've decided to use CADisplayLink for this animation because the animation needs to run as fast as possible during user…
J Kagney
  • 239
  • 1
  • 4
  • 9
0
votes
1 answer

How do I check whether a CAKeyframeAnimation has already cleared a keyframe or not?

Greetings, Let's say, for the sake of simplicity, that I'm animating the position of a UIView using a CAKeyframeAnimation employing a path containing three keyframes, let's call them A, B, an C. At a random time during the animation I want to check…
Tim Reese
  • 1
  • 1
0
votes
1 answer

CALayer setPosition not called during animation

I have a custom CALayer that I am animating using a CAAnimationGroup to follow a path and rotate at a tangent to the path: // Create the animation path CAKeyframeAnimation *pathAnimation = [CAKeyframeAnimation…
Magic Bullet Dave
  • 9,006
  • 10
  • 51
  • 81
0
votes
1 answer

Starting a CAKeyframeAnimation from a non-zero time

I have a sub-layer keyframe animation defined to animate an image along a BSpline, grouped together with a rotate animation. With the sub-layer.speed set to 0, I can drag the image back and forth along the curve by adjusting the…
0
votes
2 answers

Detecting which frame being displayed in CAKeyframeAnimaton

I need to display information about the current fey frame image that is being displayed via a CAKeyframeAnimation. So when the image at "values" index 0 is displayed show information in some NSTextFields about that image and when it animates to…
dbainbridge
  • 1,190
  • 11
  • 18
0
votes
1 answer

How to tell which UIImageView stopped animating using CAKeyFrameAnimation?

I am programatically creating UIImageViews of an iVar called *fly. I am calling a series of methods containing different CAKeyFrameAnimations. These methods are chained together using the CAKeyFrameAnimations delegate method…
0
votes
1 answer

CAKeyframeAnimation not animating until I rotate device

I seem to be missing the obvious when animating a key frame. I have looked at many code samples including Apple's MoveMe, referenced in the CAKeyframeAnimation documentation, yet, I cant find a discrepancy that would cause what I'm seeing. I create…
0
votes
1 answer

iOS CAKeyframeAnimation strange image rotation

I'm facing a strange issue on CAKeyFrameAnimation. Here's the code: //Inside the selector method of the button CAKeyframeAnimation *anim = [CAKeyframeAnimation animationWithKeyPath:@"position"]; [anim setDelegate:self]; anim.path =…
Niccolò Passolunghi
  • 5,966
  • 2
  • 25
  • 34
0
votes
1 answer

How to write a Bezier curved path on the fly with one fixed point and one changing

If I have an object performing this CAKeyframe Animation path (it is just an oval shape in the upper region of an iphone.. UIBezierPath *trackPath = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(20, 100, 280, 150)]; Now imagine that at anytime…
darbid
  • 2,545
  • 23
  • 55
0
votes
1 answer

Two CGpaths - 1 CAAnimation - but the second path should be repeated

If I have a path which starts at the top of the screen and eases down into an oval shape. I would like to once in the oval shape for the animation to keep repeating the oval shape. How do I do this with CAKeyframeAnimations? Do I have two and…
darbid
  • 2,545
  • 23
  • 55
0
votes
1 answer

CAKeyframeAnimation with Path build with CGPathAddArcToPoint doesn't work

I have a keyframeAnimation and I define a Path, but the animation doesn't work. Do you see anything wrong? :S Here is the code: CAKeyframeAnimation *animKF = [CAKeyframeAnimation animationWithKeyPath:@"position"]; CGMutablePathRef animationPath =…
0
votes
1 answer

RotationMode doen't work in a CAKeyframeAnimation (linear path)

I try to make my view rotate as long as it goes through the path (linear path) but it doesn't rotate. This is my code: CAKeyframeAnimation *animKF = [CAKeyframeAnimation animationWithKeyPath:@"position"]; animKF.values = [NSArray…
torhector2
  • 443
  • 1
  • 5
  • 19
0
votes
0 answers

modifying dynamically the duration of CAKeyframeAnimation

In my code I create a CAKeyframeanimation with an infinite repeat count, add it to a specific CALayer. I would like to modify the duration (= the speed) of the animation while animating, without the need of restarting my animation. So when i click…
Plot
  • 898
  • 2
  • 15
  • 26
0
votes
1 answer

How to Animate UIView embedded in UITableViewCell

On didSelectRowAtIndexPath, I am reloading selected row and changing heightForRowAtIndexPath so that selected tableview cell can expand. This is working fine. So as soon reloading expanding done I have to animate a UIView which is in the back of a…
Tariq
  • 9,861
  • 12
  • 62
  • 103
0
votes
2 answers

Memory Management for CGImageCreateWithImageInRect used for CAKeyFramAnimation

I'm using CAKeyFrameAnimation to animate few png images. I cut them from one png image by using CGImageCreateWithImageInRect When I run Analyze function in XCode it shows me potential memory leaks. They are beause of CGImageCreateWithImageInRect.…
1 2 3
15
16