DavydLiu / DLRadioButton

Radio Button for iOS
MIT License
944 stars 202 forks source link

Context stack bug. #152

Open BarakRL opened 5 years ago

BarakRL commented 5 years ago

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

DavydLiu commented 5 years ago

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

BarakRL commented 5 years ago

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 commented 4 years ago

Faced the same issue