• 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: CGContext - Drawing Circle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGContext - Drawing Circle


  • Subject: Re: CGContext - Drawing Circle
  • From: Dave <email@hidden>
  • Date: Thu, 04 Jul 2013 13:35:03 +0100

Here is the call:


- (void)drawRect:(CGRect) theDrawRect
{
switch (mCheckBoxStyle)
	{
	case kCheckBoxStyleBox:
	[self drawCheckBoxStyleBox:theDrawRect];
	break;

	case kCheckBoxStyleCircle:
	[self drawCheckBoxStyleCircle:theDrawRect];
	break;
	}
}

Thanks a lot
Dave

On 4 Jul 2013, at 13:11, Markus Spoettl <email@hidden> wrote:

> On 7/4/13 1:44 PM, Dave wrote:
>> I have a custom class, subclassed from UIControl that draws a circle with an
>> X in it (like a circular check box control). This works ok, but the circle
>> looks scrappy when displayed on the iPad. The method that does the work is
>> appended to this mail and is called from the drawRect method of the class.
>
> What does the call to your -drawCheckBoxStyleCircle: look like? It sounds as if you might pass the wrong rect. Notice that the rect passed into -drawRect: isn't the bounds of the control but the dirty rect you are expected to update.
>
> Regards
> Markus
> --
> __________________________________________
> Markus Spoettl
> _______________________________________________
>
> 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


_______________________________________________

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: CGContext - Drawing Circle
      • From: Markus Spoettl <email@hidden>
    • Re: CGContext - Drawing Circle
      • From: Markus Spoettl <email@hidden>
References: 
 >CGContext - Drawing Circle (From: Dave <email@hidden>)
 >Re: CGContext - Drawing Circle (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: CGContext - Drawing Circle
  • Next by Date: Re: CGContext - Drawing Circle
  • Previous by thread: Re: CGContext - Drawing Circle
  • Next by thread: Re: CGContext - Drawing Circle
  • Index(es):
    • Date
    • Thread