Skip to content

Commit 7122c89

Browse files
author
li.x
committed
Small_fix
1 parent fbfd925 commit 7122c89

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

LxThroughPointsBezierDemo/LxThroughPointsBezierDemo/ViewController.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77

88
@interface ViewController : UIViewController
99

10-
1110
@end
1211

LxThroughPointsBezierDemo/LxThroughPointsBezierDemo/ViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ @implementation ViewController
1919

2020
- (void)viewDidLoad {
2121
[super viewDidLoad];
22-
// Do any additional setup after loading the view, typically from a nib.
2322

24-
CGPoint point1 = CGPointMake(30, 180);
23+
CGPoint point1 = CGPointMake(30, 210);
2524
CGPoint point2 = CGPointMake(90, 120);
2625
CGPoint point3 = CGPointMake(120, 200);
2726
CGPoint point4 = CGPointMake(160, 240);
@@ -56,6 +55,7 @@ - (void)viewDidLoad {
5655
_shapeLayer.fillColor = nil;
5756
_shapeLayer.lineWidth = 3;
5857
_shapeLayer.path = _curve.CGPath;
58+
_shapeLayer.lineCap = kCALineCapRound;
5959
[self.view.layer addSublayer:_shapeLayer];
6060

6161
UISlider * slider = [[UISlider alloc]initWithFrame:CGRectMake(20, 84, 280, 6)];

0 commit comments

Comments
 (0)