Skip to content

IOS 6 Invalid Context Issue #8

@alideo

Description

@alideo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions