Re: How do I get a CGContextRef?
Re: How do I get a CGContextRef?
- Subject: Re: How do I get a CGContextRef?
- From: "Henry McGilton (Developer)" <email@hidden>
- Date: Sat, 22 Nov 2008 19:07:45 -0800
On Nov 22, 2008, at 5:48 PM, DKJ wrote:
On 22-Nov-08, at 17:40 , Ken Ferry wrote:
Take a look here:
Thanks for the reference, but I'm doing this for iPhone, and the
procedure seems to be different. The compiler doesn't recognise the
NSGraphicsContext class. I tried using the
UIGraphicsGetCurrentContext function, but that doesn't work either:
I get an "invalid context" error when I use it in CGContextStrokeRect.
Are you saying that this doesn't work:
CGContextRef context = UIGraphicsGetCurrentContext();
If so there must be something else going on. That's the standard
way to
obtain the current context within drawRect
Cheers,
. . . . . . . . Henry
_______________________________________________
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