Top "Calayer" questions

CALayer is a Core Animation class in the Quartz Core framework.

How can I know the values in CABasicAnimation keyPath

I find some code like this: CABasicAnimation *anim = [CABasicAnimation animation]; anim.keyPath = @"transform.scale"; anim.fromValue = [NSNumber numberWithFloat:1.0]; anim.toValue = […

iphone calayer cabasicanimation
How can I add shadow to a circle UIImageView or UIView?

I am trying to make a circle UIImageView, and it works. Below is the way I use to make it: […

ios uiview uiimageview calayer shadow
Scale UIView with the top center as the anchor point?

I'm scaling a UIView with CGAffineTransformMakeScale but I want to keep it anchored to it's current top center point as …

objective-c uiview calayer
Scale the size of CALayer contents

I have a few UIImageViews inside CALayer. How do I scale them all at once? I did try setting CALayer …

ios objective-c cocoa-touch core-animation calayer
CALayer opacity animation

I want to create a CALayer animation that gives sort of a 'flashy' effect. For that I'm trying to animate …

objective-c core-animation calayer opacity
Can't set cornerRadius AND shadow on layer that has an image view stretched to its bounds?

This is stumping me. I have a UIView (call it "parent"). The bottommost subview of that view is a UIImageView (…

uiview core-animation uiimageview calayer roundedcorners-dropshadow
How do you move a CALayer instantly (without animation)

I'm trying to drag a CALayer in an iOS app. As soon as I change its position property it tries …

ios objective-c cocoa-touch core-animation calayer
Masking a CALayer with another CALayer

I'm trying to make a donut shape with CALayers. One CALayer will be a large circle, the other one will …

ios uiview core-animation calayer
Animate CALayer border change

I'm setting a border width and color to a UIView subclass this way: - (void) setViewBorder { self.layer.borderColor = [UIColor …

ios objective-c calayer
How to apply filter to Video real-time using Swift

is possible to apply filter to AVLayer and add it to view as addSublayer? I want to change colors and …

ios swift avfoundation calayer video-capture