我在 UIViewController 中放置了以下代码:
- (void)drawRect:(CGRect)rect {
UIBezierPath *trackPath = [UIBezierPath bezierPath];
[trackPath addQuadCurveToPoint:CGPointMake(10, 30) controlPoint:CGPointMake(0, 0)];
trackPath.lineWidth = 2;
[trackPath fill];
[trackPath stroke];
}
但是,我没有看到路径。我究竟做错了什么?