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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com