cabasicanimation

Why can't I do any CABasicAnimation or Keyframe animation stuff?

For some reason Xcode tells me that it doesn't find symbols as soon as I use something like kCAFillModeForwards. There must be a library or class that I have to include...but which one? The normal Core Animation stuff works fine like [myView beginAnimations...]. What's the trick to get the more sophisticated animation stuff to work? I'v...

After rotating a CALayer using CABasicAnimation the layer jumps back to it's unrotated position

I am trying to create a falling coin. The coin image is a CALayer with 2 CABasicAnimations on it - a falling down and a rotation one. When the falling down animation gets to its end, it stays there. The rotation animation though, which is supposed to be random and end up in a different angle every time, just pops back to the original CAL...

Forcing Consecutive Animations with CABasicAnimation

I have a notification that fires in my model when certain properties change. As a result, a selector in a particular view object catches the notifications to change the position of the view accordingly. The notifications causes a view on the window to move in a particular direction (always vertically or horizontally and always by a sta...

Is there a way to pause a CABasicAnimation?

I have a basic spinning animation of the iPhone. Is there any way that I can "pause" the animation so that the position of the view will be maintained? I guess one way of doing this would be to cause the animation to "complete" instead of calling "remove" on it, how would I do that? CABasicAnimation* rotationAnimation; rotationAnimation...

visibility (overlapping) problems with CABasicAnimation CALayer transformations

I have two UIImageViews on my object, and I'm trying to animate them to page like a book. I used some of the built in animations for a while (UIViewAnimationTransitionFlipFromLeft/Right), and decided I could do better. I found a nice example for half of the animation I wanted here: http://fiftysixtysoftware.com/blog/2009/uiview-pageopen-...

Rotate button around center

Hi, I'm searching for a way to create a menu in an iPhone app that allows buttons to rotate around a center point. To put this in visual terms: the buttons would be planets and the center is the sun. this would allow the user to 'spin' the buttons around the circular path. ** an actual example of this would be the Poynt menu for the...

iPhone app spinning an image from the last position...

I am trying to create an animated spinning image. This is all fine and I am using CABasicAnimation as described in this thread http://stackoverflow.com/questions/486609/how-can-i-use-animation-in-cocos2d My problem is that I want to spin the image more than once a random number of times and I want to spin it from it's last position. At ...

CABasicAnimation delegate for animationDidStop?

I am following the example at the bottom of the page to call an animationDidStop function. http://www.informit.com/articles/article.aspx?p=1168314&seqNum=2 The author says "I have an object that is designed specifically to be the delegate of animations and all it does is hold a reference to the target object, accept the animationDi...

Understanding CABasicAnimation when spinning an object from a random angle....

I have spent ages trying to figure this out and I am still having problems. I want to rotate an image a random number of time - say 5 and a bit - then have it stop. I then want to rotate it again FROM ITS STOPPED POSITION. I am having difficulty with this so maybe someone can advise me on the right way to do it. Ok so I am using a CABa...

CALayer: callback when animation ends?

Hi All, I have been running into some issues with animating multiple CALayers at the same time, and was hoping someone could point me in the right direction. My app contains an array of CALayer. The position of each layer is set to (previousLayer.position.y + previousLayer.bounds.height), which basically lays them out similar to a tabl...

Swipe to Reveal Menu like Tweetie

Hello! I've been working on a new app and was really hoping to implement a swipe to reveal more options menu inside my application. I've searched and searched, but it seems no one else has successfully made it work (aside from Loren). What I'm trying to do is swipe the cell, and simultaneously use CABasicAnimation to push it to x: 320...

Animate CALayer hide

I'm trying to hide a CALayer after a few microseconds and I'm using CABasicAnimation to animate the hide. At the moment I'm trying to use [aLayer setHidden:YES]; CABasicAnimation * hideAnimation = [CABasicAnimation animationWithKeyPath:@"hidden"]; [hideAnimation setDuration:aDuration]; [hideAnimation setFromValue:[NSNumber numberWithB...

CGPath draw a loader

Hi every one ! I juste watch this effect : I would like to reproduce it. Is it simply a CGPath animation? Have you got some indications so implement this beautiful loader view ? Thanks for your tips ;) ...

Getting the scale factor from a CABasicAnimation

Hi there, I'm animating a shrinking object. At any point the user can hit a button to get the current scale factor of the object. (I start by scaling the object up using a CGAffineTransformMakeScale, so the scale factor should be 1 when it reaches its original size). I'm just not sure how to retrieve the current scale factor from the ani...

CABasicAnimation Repeat itself

I have a CABasicAnimation that I perform on multiple layers and all it does is move the UIImageView up 10 pixels and then back down. I want this to continue ad infinitum. When the animation finishes I can't figure out how to get it to do it again! I understand theres a animationDidStop method but that doesn't solve my problem because I c...

CABasicAnimation Problem

So, I have read in the docs, that use of blocks like beginAnimation commitAnimation is discouraged from os4.0. So I have tried to get my code to work by using CABasicAnimation. I want to achieve, that an image's frame is resized from its thumbnail size, somewhere within my view, to a full width position e.g. (0, 120, 320, 240) - on...

CGAffineTransformMakeRotation before a CABasicAnimation

I'm performing a rotation of an UIImageView in place first before performing a rotation animation: // rotate to the left by 90 degrees someView.transform = CGAffineTransformMakeRotation((-0.5)*M_PI); Then calling a rotation on the view by 180 degrees... but it seems like it is rotating the image starting from the original posi...