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

Context stack bug. #152

Open
BarakRL opened this issue Jan 14, 2019 · 3 comments
Open

Context stack bug. #152

BarakRL opened this issue Jan 14, 2019 · 3 comments

Comments

@BarakRL
Copy link

BarakRL commented Jan 14, 2019

in DLRadioButton drawIconWithSelection:
UIGraphicsPopContext();
should be called after:
UIGraphicsEndImageContext();
not before.

@DavydLiu
Copy link
Owner

@BarakRL thx for submitting the bug. Do you know what's the actual impact of this bug?

@BarakRL
Copy link
Author

BarakRL commented Feb 15, 2019

It will corrupt the graphic context stack for the entire app. For example: if you try to create a new graphics context, draw to it and get the image, it will fail and return nil.

@anton-plebanovich
Copy link

Faced the same issue

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

3 participants