<table class="ruby">
<tr class="li1"><td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 voidaddShadowView . = @NSValue valueWithCGPoint:CGPointMake,,NSValue valueWithCGPoint:CGPointMake,; int radius = ; UIBezierPath path = UIBezierPath bezierPathWithRoundedRect:CGRectMake,,...,... cornerRadius:; NSValue point . UIBezierPath circlePath = UIBezierPath bezierPathWithRoundedRect:CGRectMakepoint..,point..,radius,radius cornerRadius:radius; path appendPath:circlePath; path setUsesEvenOddFillRule:YES; CAShapeLayer fillLayer = CAShapeLayer layer; fillLayer. = path.; fillLayer. = kCAFillRuleEvenOdd; fillLayer. = UIColor blackColor.; fillLayer. = ; . addSublayer:fillLayer; refs: http:stackoverflow.a 原文链接:https://www.f2er.com/note/422017.html