kreeger / BDKCollectionIndexView

Gives a UICollectionView the sectionIndexTitles scrub bar that a UITableView gets for almost free.
MIT License
158 stars 29 forks source link

Crash on tintColorDidChange #11

Closed skorulis closed 9 years ago

skorulis commented 9 years ago

I'm seeing the following crash occasionally in hockey app. I'm not sure how it's happening or why it's only just started occurring. I've been using :head in my podfile so maybe a recent change has caused it.

I think the problem is caused by the touchStatusView being in the hierarchy but not being a UILabel but I can't confirm this.

kreeger commented 9 years ago

Thanks for raising this; I have a feeling this was caused by https://github.com/kreeger/BDKCollectionIndexView/pull/8.

Would you be able to submit a fix? If not, I'll try to look into this this weekend.

skorulis commented 9 years ago

Put up a very small pull request which should solve the immediate problem by putting in a type check. Not sure if you want to try and do something more elegant.

kreeger commented 9 years ago

Fixed with a recent merge; closing issue.