Created
March 23, 2012 21:20
-
-
Save hamin/2175166 to your computer and use it in GitHub Desktop.
Cocoa (OS X) rounded corners
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSBezierPath *roundedRect = [NSBezierPath bezierPathWithRoundedRect:[self bounds] xRadius:6.0 yRadius:6.0]; | |
[roundedRect fill]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment