Bezier路径不起作用 - 目标C

时间:2013-05-24 09:55:42

标签: ios objective-c ipad

我想画一条Bezier路径。它只是不工作。我的代码如下:

UIBezierPath * path = [[UIBezierPath alloc] init];
[[UIColor blackColor] setStroke];
[path setLineWidth:2];
[path moveToPoint:CGPointMake(0, 0)];
[path addLineToPoint:CGPointMake(50,50)];
[path stroke];
[path closePath];

我如何得到它?

0 个答案:

没有答案