Re: Why CGPathAddCurveToPoint returns to the origin?
Re: Why CGPathAddCurveToPoint returns to the origin?
- Subject: Re: Why CGPathAddCurveToPoint returns to the origin?
- From: Gustavo Pizano <email@hidden>
- Date: Sat, 6 Mar 2010 09:00:34 +0100
Hello Henry thanks for the methods, definitely after this I will re-check 3 times why things don't draw as I expect.
G.
On Mar 6, 2010, at 6:54 AM, Henry McGilton wrote:
>
> 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