This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
Crash when deallocating #47
Comments
You need to check
|
👍 this crash isn't really related to DZNSegmentedControl code tho, is it? |
This fix is for |
What if we override
Do you think that would solve it? |
Based on the documentation:
So your fix it pretty much legit. I looks like |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to use this Control on a Storyboard. My view controller is arranged this way:
UIViewController > UIView (Main) > UIView (Gradient BG) > UIView (DZNSegmentedControl)
If I push that view controller and then pop it, the app crashes with this log message (note: zombies enabled):
If I remove the class name from that view, the app will no longer crash.
If the view assigned as
DZNSegmentedControl
is not inside a second view (the gradient), but is inside the main view, it also will not crash.I created a sample project that demonstrates this.
The project has a second branch called programmatically, when I keep the inner view set as a regular UIView and then add a DZNSegmentedControl inside it programmatically. that way the app will not crash.
The text was updated successfully, but these errors were encountered: