2011-12-08 201 views

回答

3

NSBezierPath有一个特殊的+bezierPathWithRoundedRect:xRadius:yRadius:,请检查文档。

NSBezierPath *path = 
    [NSBezierPath bezierPathWithRoundedRect:NSMakeRect(...) 
            xRadius:3.0f 
            yRadius:3.0f]; 
[path fill];