Possible Duplicate:
How to draw a rounded rectangle in Core Graphics / Quartz 2D?
I want to draw a rounded rectangle programmatically for my overlaying UIView,
how would I approach this?
Possible Duplicate:
How to draw a rounded rectangle in Core Graphics / Quartz 2D?
I want to draw a rounded rectangle programmatically for my overlaying UIView,
how would I approach this?
NSBezierPath has a special +bezierPathWithRoundedRect:xRadius:yRadius:
, check the documentation.
NSBezierPath *path =
[NSBezierPath bezierPathWithRoundedRect:NSMakeRect(...)
xRadius:3.0f
yRadius:3.0f];
[path fill];