core-animation

How to change iphone CATiledLayer fadeDuration ?

Hi StackOverflowers I am working on an iphone application that displays tiled maps. I am currently using a CATiledLayer in a UIScrollView : MyTiledDelegate *delegate=[[MyTiledDelegate alloc] initWithMapLayer:map]; tileLayer = [CATiledLayer layer]; tileLayer.delegate = delegate; [scrollView.layer addSublayer:tileLaye...

Image getting pixelated when used as part of an animation in iPhone animation.

After countless tries I got my animation animating right (Why oh why is the layer's coordinate system Y flipped from the view's coordinate system, I will never guess) but it seems that it degrades the image quality for some reason: (green circled are examples of the original good quality images, the red circled is to emphasize the dif...

Switching CABasicAnimation on the position property mid animation causes a flicker

I have some code that uses CALayers to have bubbles flowing bottom to top. If the user touches the screen I have some code that replaces the currently running animation with one that has a toPoint where the finger touched down. When the animation switches it causes a flicker on the device (not on the simulator). Any tips on eliminating t...

Applying multiple transforms to a UIView / CALayer

Is there any problem applying multiple transforms to a UIView and it's corresponding CALayer? Specifically, can you "mix and match" CATransform3Ds with CGAffineTransforms without running into issues? Also are there any problems with setting some transforms directly while animating another transform change simultaneously? Are there any...

Magento core function working in remote system displaying error in another system.

In catalog.xml file of frontend template folder I had blocks defined for tabs to display product tags,additional information etc.in this way: additional Additional Information catalog/product_view_attributes catalog/product/view/attributes.phtml Which was working fine in the remote system,but when i installed it in local magento and tr...

how to know when a coreanimation animation ends

Hi, I'm doing some animations with core animation, but I can't found a way to know with a notification or event when the animation block has finish, like in UIVIew animation block you have setAnimationDidStopSelector: how can I know this in core animation, thanks for any help ...

CATextLayer outlined text

How do I draw outlined text using Core Animation layers? The stroke attributes of an NSAttributedString seem to get ignored by CATextLayer and I can't find a standard filter that I can apply to the layer that gives good results. Surely this should be easy? ...

Preload/predisplay tiles in a CATiledLayer?

On the iPhone (though I imagine it's an equally valid question in Cocoa) I have a UIScrollView around a UIView backed by a CATiledLayer. The way it works by default is to load any uncached/unfetched tiles when my viewport scrolls over a blank section of the CATiledLayer. What I would like to know is if there's a way to trigger CATiledLa...

UIView animation vs CALayers on iPhone

I'm struggling with conceptualizing animations with a CALayer as opposed to UIView's own animation methods. Throw "Core Animation" into this and, well, maybe someone can articulate these concepts from a high level so I can better visualize what's happening and why I'd want to migrate UIView animations (which I'm quite familiar with now) ...

iPhone flip right button (like iTunes)

I'm trying to flip between two views. That's easy, the code is below, but I also want to simultaneously flip the button used to perform the flip. You can see this behavior in the iPod application when you're playing a track; tapping the flip button flips between the cover art and the track listing, but it flips the button at the same ti...

How can I animate the movement of a view or image along a curved path?

Hi all, I am developing a commerce application. When I add an item to the cart, I want to create an effect where an image of the item follows a curve path and ends up at the cart tab. This can be seen in Barnes and Nobles Bookstore app in the App store. ...

Animation for UIViews with Background Images?

I am having a problem with a UIView that when using a solid colour for the background, animates perfectly fine. However when I set a background image for it's colour instead, the UIView animation doesn't work properly. It looks like a ghost outline of the page curl, but the UIView itself is 100% transparent (If that makes sense). The i...

How can I provide a value in minutes to setAnimationDuration?

I think a value of 1.0 represents one second, but I'm not very sure with that. Is that a hexadecimal system? What would you provide to give exactly one minute for duration? ...

How can I enforce an specific direction (i.e. clockwise) of rotation in Core Animation?

I am rotating a view with this: CGAffineTransform rotatedTransform = CGAffineTransformRotate(CGAffineTransformIdentity, rotationValue); I have an object which I want to spin around for about 320 degrees. Now Core Animation is clever and just rotates it as much as needed, doing that by rotating it with -40 degrees. So the object rotate...

How can I pause a currently running animation?

I have a Core Animation running and want to pause it when a button is pressed. So there is a method -pauseAnimation. When the animation is paused, I want the animated view to stay in the state as it currently was while animating. i.e. if a view moves from top left to bottom right, and somewhere in the middle the animation is paused, the ...

Can I forget all my UIKit and Core Animation knowledge when I decide to do everything in OpenGL ES?

I was reading that OpenGL ES can work together with Core Animation. So I wonder if I can re-use some of my hard-worked knowledge on Core Animation when I start doing OpenGL ES stuff... ...

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

What's the difference between CAAnimation, CABasicAnimation, CAKeyFrameAnimation and the standard [UIView beginAnimations] Core Animation stuff?

Are all these things basically the same? I did the exact same thing now with CAAnimation rather than using an simple UIView animation block. What are the big differences? ...

How can I do an complex chained animation the right way?

Example: 1) fade an uiview from alpha 0.0 to 0.2 2) fade back to 0.15 3) fade to 0.25 4) fade to 0.2 5) fade to 0.35 6) fade to 0.3 7) fade to 0.45 8) fade to 0.4 ... and so on. each with a duration of 0.05 sec. The effect is a flashy appearing view. Just for fun. Previously I did this with simple UIView animation blocks, where every n...

What explains best the CAPropertyAnimation animationWithKeyPath: parameter?

I'd like to have a better understanding of this parameter in + (id)animationWithKeyPath:(NSString *)keyPath They just say: "The key path of the property to be animated." In some example snippets I see things like: CABasicAnimation *fadeInAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"]; CAKeyframeAnimation *animatedI...