回答編集履歴

1

コードを一部修正

2016/01/11 07:04

投稿

Stripe
Stripe

スコア2183

test CHANGED
@@ -8,15 +8,11 @@
8
8
 
9
9
  let path = CGPathCreateMutable()
10
10
 
11
- CGPathMoveToPoint(path, nil, 0.0, 30.0)
11
+ CGPathAddArc(path, nil, 0.0, 0.0, 30.0, CGFloat(M_PI), CGFloat(M_PI/2.0), false)
12
12
 
13
13
  CGPathAddLineToPoint(path, nil, 0.0, 50.0)
14
14
 
15
15
  CGPathAddArc(path, nil, 0.0, 0.0, 50.0, CGFloat(M_PI/2.0), CGFloat(M_PI), true)
16
-
17
- CGPathAddLineToPoint(path, nil, -30.0, 0.0)
18
-
19
- CGPathAddArc(path, nil, 0.0, 0.0, 30.0, CGFloat(M_PI), CGFloat(M_PI/2.0), false)
20
16
 
21
17
  CGPathCloseSubpath(path)
22
18