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.

229 questions
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,608
  • 2
  • 24
  • 33
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,184
  • 19
  • 44
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,184
  • 19
  • 44
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
  • 433
  • 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
  • 878
  • 2
  • 15
  • 25
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,514
  • 11
  • 55
  • 97
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.…
0
votes
1 answer

keep calayer from moving to original position

CAKeyframeAnimation *anim = [CAKeyframeAnimation animationWithKeyPath:@"position"]; NSArray *times = [NSArray arrayWithObjects:[NSNumber numberWithFloat:0.0], [NSNumber numberWithFloat:0.33], [NSNumber numberWithFloat:0.5], [NSNumber…
0
votes
3 answers

2 animations on same object, only last shows. How to show first one w/o nesting completion block?

I'm doing two animations on the same UIImageView, using blocks. Animations are not quite back to back, but almost; there is some logic inbetween. animate UIImageView from one location on the view to another. execute logic that determines whether…
0
votes
1 answer

Animated ViewController works in iOS 5, but not iOS 4

I am loading ViewControllerA inside ViewController B. It is a small animated character, inside a larger scene. Inside ViewControllerA, there is a rotation animation like: CAKeyframeAnimation *bobble = [CAKeyframeAnimation …
Fluffhead
  • 845
  • 1
  • 9
  • 21
0
votes
1 answer

Animate to one specific keyframe value of an CAKeyframeAnimation

I have four positions in my CAKeyframeAnimation that are part of a bezier path and my animation is working great along the path. But now I need the animated sprite to be moved to one specific value of the keyframe position values. how could I…
headkit
  • 3,207
  • 4
  • 49
  • 99
0
votes
1 answer

Implicit animation not working

As I'm trying to override implicit animation on the position property, the layer quickly flashes to the destination position and then starts my explicit animation: CAKeyframeAnimation* animation = [CAKeyframeAnimation animation]; animation.path =…
0
votes
1 answer

Pulling animation on ios

Please i need to know how can i do pulling effect using multiple image. Those images must follow a specific path each image beside another one like a train. is there any solution than looping. what i wanna exactly is those image move simultaneously.
Abdel Ali
  • 1
  • 1
0
votes
0 answers

UITouch touchesMoved Finger Locations Animating a View via CAKeyframeAnimation

I am re-writing my question because it is modified a lot and now it became a new question. - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; location = [touch…
Val Nolav
  • 918
  • 7
  • 18
  • 42
1 2 3
15
16