caanimation

Issue with CAAnimation and CALayer Transforms

I have a CALayer that I want to animate across the screen. I have created two methods: one slide open the layer and one to slide close. These both work by assigning a property to the layer's transform property. Now I want to use a CAKeyFrameAnimation to slide open the layer. I got this working so the layer slides open, but now I can'...

Keep object oriented towards a point while it's animated along a path

I'm trying to animate an object along a path...while it's moving it should continue to "point" towards another object (or CGPoint). What should I be looking for in the framework (Cocoa-Touch) to accomplish this? Maybe something in CAShapeLayer? Though I think that's more for animating the path itself... It's not jumping out at me... ...

Background of CALayer iPhone

I want to set an own background CALayer of an layer (or fake it) to make a Flip-effekt of 2 Layers. I know there is this UIView animation called UIModalTransitionStyleFlipHorizontal/Vertical. How is this possible with CALayers/CAAnimation? Could i overlay 2 Layers and rotate the back layer? Thank you ...

iphone: how to do Page turning

hi frnds, I am facing the problem from a month and didn't find anything from google.. I am using UIView for pdf display. there is no problem with pdf but problem is with transition. I have to turn each page of pdf with realistic page turn exp. I search, dig a lot about that but i didn't get anything that how to do that. I don't want t...

CABasicAnimation not scrolling with rest of View

All, I'm working on reproducing the pulsing Blue circle effect that the map uses to show your own location... I layered a UIView over a MKMapView. The UIView contains the pulsing animation. I ended up using the following code gleaned from numerous answers here on stackoverflow: CABasicAnimation* pulseAnimation = [CABasicAnimation ...

Animating multiple UIViews at once using CoreAnimation

Hi, I'm using a UIImageView as a background-image and placed multiple UIButtons on it. Now I want to move the UIImageView (with all the buttons on it) out of sight with a smooth animation (using CoreAnimation). I couldn't find a container or grouping element in IB, so is there a way to move all the Views at once? Thank you in advance a...

iphone view animation problem

I'm using following code to animate a view. It basically rotates the view by 225 degrees angle. [viewToOpen.layer removeAllAnimations]; viewToOpen.hidden = NO; viewToOpen.userInteractionEnabled = NO; if (viewToOpen.layer.anchorPoint.x != 0.0f) { viewToOpen.layer.anchorPoint = CGPointMake(0.0f, 0.5f); viewToOpen.center = CGP...

CABasicAnimation animates everything when it should only animate one thing

I made a bunch of little individual pictures, each with a separate CALayer, and they're supposed to fade in and out asynchronously at different rates. Each has a background sublayer and a fill sublayer. A timer runs in the background to animate each one individually at specific moments. For the current behavior of the program, rather ...

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 ;) ...

How can I callback as a CABasicAnimation is animating?

I have an animation I'm using to snap a rotatable UIView to a circular grid. As the view animates, I need to update another view based on the rotating views position. How can I go about getting the position of the rotating view as it animates into position? ...

UIImageView is disappearing after CAKeyframeAnimation

I'm trying this code (found in an answer here on SO) in a category on UIView and am using it to peform a "pop" animation on a UIImageView nested inside of a UITableViewCell. - (void)attachPopUpAnimation { CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"transform"]; CATransform3D scale1 = CATr...

CAAnimationGroup with different interface elements

Hi, I want to crossfade two NSViews and resize their NSWindow. I know how to do them separately but so far not how to do it simultaneously. I think I need a CAAnimationGroup for it. But because I'm dealing with two different objects, I don't know how to add the two animations in the group and I don't know how to start the animation beca...

How to change Frame.size using CABasicAnimation

Hi i have change the frame size using CABasicAnimation i used below code CABasicAnimation *newanim; newanim = [CABasicAnimation animationWithKeyPath:@"bounds.size"]; newanim.duration=3.0; newanim.fromValue=[NSValue valueWithCGSize:CGSizeMake(0,0)]; newanim.toValue=[NSValue valueWithCGSize:CGSizeMake(self.backgroundImageView.bounds...

UIView Animaton Resets to beginning

I'm attempting to run an animation so that the scrollview's contentoffset gets continually scrolling down. However, after each repeat, it will animate from the original position and it is not progressing. [UIView beginAnimations:nil context:NULL]; [UIView setAnimationBeginsFromCurrentState: YES]; [UIView setAnimationDuration:1.0]; [UIV...

Benefits and drawbacks for CAAnimationGroup vs. CAKeyframeAnimation.

Dear fellow Stackers, I'm currently working on some core animation stuff for the iOS and really enjoying myself. This question is regarding the many different ways one can implement an animation. Say you would like to rotate a UIView a few times but with different timing functions for each animation cycle. To the best of my knowledge th...

How to do a curve/arc animation with CAAnimation?

Hi I have an user interface where an item get deleted, I would like to mimic the "move to folder" effect in iOS mail. The effect where the little letter icon is "thrown" into the folder. Mine will get dumped in a bin instead. I tried implementing it using a CAAnimation on the layer. As far as I can read in the documentations I should b...