Top "Calayer" questions

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

remove all subLayers from a view

In an animation I added a lot of sublayers to a view, with: [self.view.layer addSublayer:layer1]; [self.view.…

ios objective-c calayer
CALayer with transparent hole in it

I have a simple view (left side of the picture) and i need to create some kind of overlay (right …

ios objective-c calayer quartz-core
Why masksToBounds = YES prevents CALayer shadow?

With the following snippet, I'm adding a drop shadow effect to one my UIView. Which works pretty well. But as …

ios objective-c uiview calayer
CABasicAnimation resets to initial value after animation completes

I am rotating a CALayer and trying to stop it at its final position after animation is completed. But after …

ios iphone calayer cabasicanimation
add UIImage in CALayer

I must add a UIImageView as subview of MapView. To do this I created a layer above the MapView. In …

ios uiimageview uiimage calayer subview
Disabling implicit animations in -[CALayer setNeedsDisplayInRect:]

I've got a layer with some complex drawing code in its -drawInContext: method. I'm trying to minimize the amount of …

iphone ios core-animation calayer
UIView with a Dashed line

What I have: To create this line, I basically have an UIView and I do the following: void setLayerToLineFromAToB(CALayer *…

iphone ios uiview calayer quartz-2d
Auto Layout constraint on CALayer IOS

Hi I am developing iPhone application in which I tried to set one side border for edittext. I did this …

ios autolayout calayer
What causes this error? "CALayer position contains NaN: [240 nan]"

I've seen this happen whenever i rotate a screen that has a UITableView on it. I've found out that it …

iphone core-animation calayer
How to draw a smooth circle with CAShapeLayer and UIBezierPath?

I am attempting to draw a stroked circle by using a CAShapeLayer and setting a circular path on it. However, …

ios uikit core-graphics calayer cashapelayer