Re: CGContext - Drawing Circle
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