• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why CGPathAddCurveToPoint returns to the origin?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Why CGPathAddCurveToPoint returns to the origin?
      • From: Gustavo Pizano <email@hidden>
References: 
 >Why CGPathAddCurveToPoint returns to the origin? (From: Gustavo Pizano <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: Gustavo Pizano <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: Gustavo Pizano <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: David Duncan <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: NSURLConnection Asynchronous vs. Synchronous Asymmetry
  • Next by Date: Re: Why CGPathAddCurveToPoint returns to the origin?
  • Previous by thread: Re: Why CGPathAddCurveToPoint returns to the origin?
  • Next by thread: Re: Why CGPathAddCurveToPoint returns to the origin?
  • Index(es):
    • Date
    • Thread