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
0 answers

Position of layer during CAKeyFrameAnimation remains constant

I am animating the layer of a UIView subclass along a path. When I print the position of the layer it always returns the same value, the position of the view itself. How can I access the position during animation? Or should I use spritekit for this?
some_id
  • 29,466
  • 62
  • 182
  • 304
0
votes
1 answer

Implementing Perfectly Timed Animations

Creating Perfectly "up to spec" Animations I'm working with a designer right now that likes to work a lot with After Effects. They create beautiful, well timed animations that look great, but I'm having trouble actually implementing the designs. I…
martega
  • 2,103
  • 2
  • 21
  • 33
0
votes
1 answer

UIView animateKeyFramesWithDuration not starting at correct times

I'm confused as to why this isn't working. I these three events to occur one after the other. First one zooms and Image out, second one fades in a background and third one animates the first image. But it actually occurs the other way round? Have I…
vanilla_splsh
  • 153
  • 1
  • 12
0
votes
1 answer

Unable to interact with UIButton after CAKeyFrameAnimation with fill modes

I have a UIView named ButtonHolderView in IB. I added a UIButton in this view and animated it. I set the delegate, so that when the button is pressed, I notify the user. However, after the animation is done, I cant click on the button. I can clearly…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
0
votes
1 answer

How can I visually display points in a UIBezierPath?

I'm trying to change the shape of a CAShapeLayer from a circle to a different shape. Looking at this question: Smooth shape shift animation I found the solution but my question is how can I visually see how many points a UIBezierPath has. Is there a…
0
votes
1 answer

CAKeyFrameAnimation presentation layer seems not to change

I'm using CAKeyframeAnimation to move CALayer on a circle trajectory. Sometimes I need to stop animation and to move animation to the point at which the animation stopped. Here the code: CAKeyframeAnimation* circlePathAnimation =…
Noobass
  • 1,974
  • 24
  • 26
0
votes
1 answer

Animate layer position with CAKeyframeAnimation

I've dig through all the internet sites and haven't found solution. My problem is changing CALayer position with CAKeyframeAnimation. I cannot set up final value of layer's position after animation ends (position resets to it's final value). All of…
0
votes
1 answer

Why CAAnimation Rotation is returning to previous state

I am using CAKeyFrameAnimation to do rotation of an arrow image. Problem is that the imageview is returning back to the previos state after animation. Code: CAKeyframeAnimation *rotation = [CAKeyframeAnimation animation]; rotation.duration =…
user334081
  • 26
  • 3
0
votes
1 answer

Animation Along a Path with CAKeyframeAnimation

I have in my View two imageViews and connected with IBOutlet: IBOutlet UIImageView *ship; // X/Y = 130/82, W/H = 61/50 IBOutlet UIImageView *planet;// X/Y = 87/173, W/H = 147/128 All I'm trying to do is animate my ship image along a ellipse Path…
0
votes
2 answers

Adding animated layer on video using CAKeyframeAnimation

I'm trying to add an overlay to my video which contains a sublayer that has the content changed over time. So I'm adding CAKeyframeAnimation to the layer as follows: CALayer *overlayLayer = [CALayer layer]; [overlayLayer setFrame:CGRectMake(0, 0,…
0
votes
0 answers

How to animate the translation of an UIImageView that has been dragged from one point to another?

I'm having an issue with some animations in a Swift iOS application. I am trying to allow a user to grab a UIImageView and drag (pan) it to a different point. Then if they push "animate" it shows the animation of the imageview along a path from the…
Sean Meacham
  • 11
  • 1
  • 3
0
votes
0 answers

Running multiple CAKeyframeAnimations at the same time

So i have 2 CAkeyframeanimations on different layers and i want them to run simultaneously. Previously i tried running them from using dispatch_async. However it didn't worked and the animation were still running in sequence. After a bit of search…
Win Coder
  • 6,628
  • 11
  • 54
  • 81
0
votes
1 answer

Move custom UIView with CAKeyframeAnimation and CGMutablePathRef

I have a uiview object with its own class and .xib file (= GroupOnScreen). The UIView holds two UIImageViews and a UIButton. In my ViewController serveral of these UIViews are created and drawn on screen: - (void)viewDidLoad { ... …
0
votes
1 answer

CAKeyFrameAnimation: Where/How to set the final position/scale?

I am trying to make a button shrink/expand upon touch using the code below. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *myTouch = [touches anyObject]; UIView *view = [myTouch view]; view.transform =…
user1040575
0
votes
1 answer

CAKeyframeAnimation not visible on video

I'm making an app to manipulate video, now I m adding sprite animation above the video. For that I m using CAKeyframeAnimation, I have a method in a Manager that is adding the animated sprite. // add effect on the video [EffectManager…