(Use the SVG version of the image.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[UIBezierPath]] is a convenient object for creating rounded-rectangular shapes. | [[UIBezierPath]] is a convenient object for creating rounded-rectangular shapes. | ||
Line 21: | Line 19: | ||
== Reference == | == Reference == | ||
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIBezierPath.h | * Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIBezierPath.h | ||
{{occlass|library=UIKit.framework|navbox=on}} |
Revision as of 17:34, 12 October 2009
UIBezierPath is a convenient object for creating rounded-rectangular shapes.
Error creating thumbnail: File missing
Example
-(void)drawRect:(CGRect)rect {
UIBezierPath* roundedRect = [UIBezierPath roundedRectBezierPath:CGRectInset(rect, 5, 5)
withRoundedCorners:UIBezierPathRoundedTopLeftCorner|
UIBezierPathRoundedTopRightCorner|
UIBezierPathRoundedBottomLeftCorner|
UIBezierPathRoundedBottomRightCorner
withCornerRadius:5];
[[UIColor blackColor] setFill];
[roundedRect fill];
}
Reference