2011-12-08 93 views

回答

3

NSBezierPath有一個特殊的+bezierPathWithRoundedRect:xRadius:yRadius:,請檢查文檔。

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