self.myPath=[UIBezierPath bezierPathWithArcCenter:center
radius:200
startAngle:0
I have two solution for you.
Draw this path on a CALayer
. And use that CALayer
as a mask layer for you actual CALayer
.
Draw a rectangle with the sizes of you frame before adding arc.
UIBezierPath *path = [UIBezierPath bezierPathWithRect:view.frame];
[path addArcWithCenter:center
radius:200
startAngle:0
endAngle:2*M_PI
clockwise:YES];
I would use second solution. :)