-
Notifications
You must be signed in to change notification settings - Fork 70
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
CGContextFillRects: invalid context 0x0 #20
Comments
Thanks @O-mkar. Do you have any relevant code or steps to reproduce? |
@bachonk I found an alternative fix for the error till you fix
|
@O-mkar unfortunately, I'm still not seeing the issue on my end, but I'll continue to dig around. In the meantime, could you share what your alternative fix was? |
when you set image in custom collection view cell, this issue will generated. |
I am also getting the same error, i am setting background image to UIButton in custom collection view cell |
The problem is using |
What I tried is to create a UIImageView through code as below and use it's
|
@YahyaBagia I can confirm this works. It's hacky but it works. I have my image view set up in the cell's
Then in my view controller's
Hopefully this can help someone else out |
i'm getting this error on iOS 9 Swift
: CGContextFillRects: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
The text was updated successfully, but these errors were encountered: