• 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: clear a CGContextRef in an iPhone app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clear a CGContextRef in an iPhone app


  • Subject: Re: clear a CGContextRef in an iPhone app
  • From: David Duncan <email@hidden>
  • Date: Mon, 4 Oct 2010 11:15:47 -0700

On Oct 4, 2010, at 11:04 AM, Rainer Standke wrote:

> wondering how to clear a context. I'm using this:
>
> CGContextClearRect(context, drawingRect);
>
> But yet, afetr I do that, and then start to draw something new, I get remnants of the previous content of the context.


Where are you calling this? About the only thing I know of that might cause this is trying to call UIGraphicsGetCurrentContext() from outside of -drawRect: (in which case unless you've pushed or started your own context you get back NULL, which CG ignores).
--
David Duncan

_______________________________________________

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: clear a CGContextRef in an iPhone app
      • From: Rainer Standke <email@hidden>
References: 
 >clear a CGContextRef in an iPhone app (From: Rainer Standke <email@hidden>)

  • Prev by Date: Re: info.plist with DYLD_LIBRARY_PATH = ~/test
  • Next by Date: Re: info.plist with DYLD_LIBRARY_PATH = ~/test
  • Previous by thread: clear a CGContextRef in an iPhone app
  • Next by thread: Re: clear a CGContextRef in an iPhone app
  • Index(es):
    • Date
    • Thread