Questions tagged [caanimation]

CAAnimation is an abstract animation class from Apple QuartzCore framework. It provides the basic support for the CAMediaTiming and CAAction protocols.

All Core Animation's animation classes descend from the abstract class CAAnimation. CAAnimation adopts the CAMediaTiming protocol which provides the simple duration, speed, and repeat count for an animation. CAAnimation also adopts the CAAction protocol. This protocol provides a standardized means for starting an animation in response to an action triggered by a layer.

For more information, see the Apple Documentation for CAAnimation.

457 questions
6
votes
2 answers

Animation stops after segueing to different view controller

I have an animation in my app that basically just makes a UIButton grow and shrink to make it obvious to the user that they should tap. The problem is that while it works fine when the view first appears, it doesn't work if I go to a different view…
user3746428
  • 10,497
  • 19
  • 72
  • 129
6
votes
1 answer

Mixing Images and Video using AVFoundation

I'm trying to splice in images into a pre-existing video to create a new video file using AVFoundation on Mac. So far I've read the Apple documentation example, ASSETWriterInput for making Video from UIImages on Iphone Issues Mix video with static…
Tom Haygarth
  • 101
  • 1
  • 9
6
votes
2 answers

CALayer subclass not animating to property changes

I have a CALayer subclass with float animAngle as property marked as @dynamic. I have implemented methods actionForKey, initWithLayer, needsDisplayForKey and drawInContext for subclass. The definition for actionForKey is as follows -…
Madhur Rawat
  • 468
  • 1
  • 6
  • 17
6
votes
2 answers

What is the maximum duration value (CFTimeInterval) for a CAAnimationGroup?

I have two rotation animations in my CAAnimationGroup, one that starts from zero and another that repeats and autoreverses from that state: - (void)addWobbleAnimationToView:(UIView *)view amount:(float)amount speed:(float)speed { NSMutableArray…
jowie
  • 7,877
  • 8
  • 52
  • 92
6
votes
5 answers

how to spin an image continuously

I have an wheel image in .png format, I want to know how can i animate so that it rotates continuously, I searched on stackoverflow and found certain snippets of code which helped me rotate my image but it wouldn't rotate continuously, it would just…
BoredToDeath
  • 453
  • 2
  • 7
  • 21
5
votes
4 answers

How to resume a CAAnimation after coming back from multitasking

in my app i have an array of CALayer that I have animated along a bezierPath. When I close and reopen the app my layers are not animating and not in the same position as before closing the app. I have implemented two methods, pauseLayer and…
5
votes
0 answers

How can I play and pause a default COLLADA animation at certain keyframes?

I want to play and pause an animation in FBX format. I couldn't find a way to make that work, so I first convert the fbx files to dae (COLLADA) format, which can be imported for use in SceneKit. I am loading the dae file like this, and adding it to…
vrwim
  • 9,459
  • 11
  • 57
  • 107
5
votes
1 answer

Stop CABasicAnimation from being removed after completion

Hey, I have this code snippet (duration is .5, amount is 1.5) CABasicAnimation *grow = [CABasicAnimation animationWithKeyPath:@"transform"]; grow.duration = duration; grow.repeatCount = 0; grow.removedOnCompletion = NO; grow.autoreverses =…
Andrew
  • 1,447
  • 1
  • 14
  • 22
5
votes
1 answer

Fade background-color from one color to another in a UIView

How can I fade from one background-color to another color in a UIView? In javascript (jQuery) it can be done by doing the following: $('body').animate({ backgroundColor: "#ff00ff"}); Would it be easier if I converted the colors to HSV? EDIT: Tried…
johankj
  • 1,725
  • 17
  • 33
5
votes
2 answers

SceneKit get current SCNNode position form Animated SCNNode

I want to get a current node position form an animated SCNNode I am aware of presentationNode and I tried to extract position form there, but no Luck Here is my Code SCNNode * pelvis = [_unit childNodeWithName:@"Bip01_Pelvis"…
ColdSteel
  • 2,289
  • 4
  • 19
  • 31
5
votes
2 answers

UITableViewRowAnimationNone - behaving as UITableViewRowAnimation(Top/Bottom)

I have set the row insertion with the following code. I am only using UITableViewRowAnimationNone when inserting and deleting the rows, but sometimes ,as you can see in the gif below, the row animates in from the top or bottom. For the most part it…
Michael
  • 5,793
  • 5
  • 32
  • 46
5
votes
1 answer

How to wait for an repeating CAAnimation to finish a cycle before removing it

I have a view that I let pulsate using a CAAnimation. CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"opacity"]; animation.values = @[ @0.0f, @1.0f, @0.0f ]; animation.duration = 0.5; animation.repeatCount =…
Alfonso
  • 8,066
  • 40
  • 63
5
votes
2 answers

CAAnimation with callback on step

I have a CAAnimation that uses a timing function. I need callbacks to happen consistently thought the animation. Similar to jQuery's step callback. I have scoured the internet for a solution to this but have not been able to find one. (maybe I am…
brenjt
  • 15,133
  • 11
  • 74
  • 114
5
votes
1 answer

UIPanGestureRecognizer on a UIView behaves oddly after UIViews layer is animated

I have a series of UIViews which I animate along an arc. Each view has a UIPanGestureRecognizer on it which before any animation occurs works as expected. However after animating the views (with the method below which animates a view's layer) the…
Damo
  • 12,452
  • 3
  • 46
  • 61
5
votes
2 answers

Animate a point of a Bezier curve

Is is possible to animate a point of a bezier curve? I am trying make a smooth transition from a line to an arrow. Here's what the line looks like in code //// Color Declarations UIColor* white = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha:…
Bernd
  • 10,009
  • 11
  • 60
  • 93
1 2
3
30 31