Clicky

iOS Dev Nugget 194 Debugging CGContextDrawImage: invalid context 0x0

.

Need to run a code review on your codebase? Hire me

When working with Core Graphics, you may sometimes see this error message, but it's not obvious where it went wrong:

CGContextDrawImage: invalid context 0x0

Set a symbolic breakpoint for CGPostError and inspect the stack trace.


Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No

.

.

Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter

.

View archives of past issues