Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS 6 Invalid Context Issue #8

Open
alideo opened this issue Nov 28, 2012 · 0 comments
Open

IOS 6 Invalid Context Issue #8

alideo opened this issue Nov 28, 2012 · 0 comments

Comments

@alideo
Copy link

alideo commented Nov 28, 2012

Hi,

If I use the categories on an IOS 6 SDK project. I am getting the following on the console:

: CGContextDrawImage: invalid context 0x0
: CGBitmapContextCreateImage: invalid context 0x0

While debugging it I am able to pinpoint the issue but have not been able to find a remedy for it. The issue is that context is null:

CGContextRef context = CGBitmapContextCreate(NULL, scaledWidth, scaledHeight, 8, (scaledWidth * 4),colorSpace, kCGImageAlphaPremultipliedLast);

Any solution you can provide would be a great help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant