Top "Cashapelayer" questions

CAShapeLayer is a special purpose CALayer subclass for drawing animatable shapes using cubic Bezier splines.

An easy way to draw a circle using CAShapeLayer

In questions like How to draw a smooth circle..., ...Draw Circle... and ...draw filled Circles the question and answer is …

ios objective-c swift uibezierpath cashapelayer
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
Draw circle with UIBezierPath

I'm trying to draw a circle using UIBezierPath addArcWithCenter method : UIBezierPath *bezierPath = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(0., 0., 100., 100.)]; [bezierPath addArcWithCenter:center radius:0. startAngle:0 …

objective-c calayer cashapelayer cabasicanimation
How to make my UIBezierPath animated with CAShapeLayer?

I'm trying to animate a UIBezierPath and I've installed a CAShapeLayer to try to do it. Unfortunately the animation isn't …

ios core-animation cashapelayer
Applying a Gradient to CAShapeLayer

Does anyone have any experience in applying a Gradient to a CAShapeLayer? CAShapeLayer is a fantastic layer class, but it …

iphone core-graphics quartz-graphics gradient cashapelayer
How to animate CAShapeLayer path and fillColor

How to animate CAShapeLayer path and fillColor? How to animate strokeEnd to show the path being drawn? and how to …

iphone ios core-animation cgpath cashapelayer
Mask a UIView with a cut-out circle

I’ve created a UIView with a semi-transparent black background to sit across my main app’s view. What I’…

ios objective-c uiview core-animation cashapelayer
UIBezierPath Triangle with rounded edges

I have designed this code to generate a Bezier Path that is used as a path for a CAShapeLayer to …

ios objective-c core-graphics uibezierpath cashapelayer
Custom image mask in iOS

I have a issue with masking images. I do game "puzzle" and have to make custom images. I found and …

iphone ios calayer puzzle cashapelayer
clip-masking uiview with CAShapeLayer and UIBezierPath

I have a problem clipping a view using CAShapeLayer-UIBezierPath , I want to clip the content but I end up getting …

ios objective-c uiview uibezierpath cashapelayer