leverdeterre / CustomScrollIndicator

iOS custom ScrollIView indicator
MIT License
183 stars 25 forks source link

Crash on dealloc #2

Open idandrs opened 9 years ago

idandrs commented 9 years ago

This causes a crash when trying to dealloc the object that uses this class. I tried to catch the exception (without doing anything with it) but then it crashes even earlier (when loading, I think.) Any Ideas? did somebody solve it?

leverdeterre commented 9 years ago

Can you send me some code to reproduce this bug?

matthewbordas commented 9 years ago

I had this same issue and to fix it I made the method -(void)removeKVOObservers public and then called it on the text field with the custom scroll indicator in viewWillDisappear, inside the view controller that the text field was attached to.

screen shot 2015-08-26 at 7 05 17 pm screen shot 2015-08-26 at 7 05 55 pm