0

请告诉我应该如何使用 NSBezierPath 添加循环过程。我知道 appendBezierPathWithArcWithCenter 方法,但它是如何工作的。提前致谢

4

1 回答 1

0
NSBezierPath * path = [NSBezierPath bezierPath];
[path setLineWidth:2];

NSPoint center = { 250,250 };

[path moveToPoint: center];
[path appendBezierPathWithArcWithCenter: center
                                 radius: 64
                             startAngle: 0
                               endAngle: 321];

[[NSColor whiteColor] set];
[path fill];

[[NSColor grayColor] set]; 
[path stroke];  

看看cocoadevcentral

于 2013-08-27T07:07:15.310 回答