Re: Why CGPathAddCurveToPoint returns to the origin?
Re: Why CGPathAddCurveToPoint returns to the origin?
- Subject: Re: Why CGPathAddCurveToPoint returns to the origin?
- From: Henry McGilton <email@hidden>
- Date: Fri, 5 Mar 2010 21:54:36 -0800
On Mar 5, 2010, at 10:07 AM, Gustavo Pizano wrote:
> Hello Duncan.
>
> I want to draw the inside of a UIButton with a gradient, so I just place in IB a Cusotm Buttom, and in the drawRect I taking its bounds, and from there Im getting the midX,minX etc.
> So let me see if I get this straight, and rechecking the docs,.
>
> OHHHHH OMG!!
> I m such an idiot, I was using the wrong method, I needed the CGContextAddArcToPoint,...
>
> my mistake... sorry
Just for laughs, I have placed a ZIP file on my web site at:
http://www.trilithon.com/download/CoreGraphicsExtras.zip
which contains functions for drawing Round-Corner-Rectangles in either a CGPath or a CGContext.
Cheers,
. . . . . . . . Henry
www.nonatomic-retain.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden