bfeher / BFPaperTableViewCell

A subclass of UITableViewCell for iOS inspired by Google's Paper Material Design.
MIT License
368 stars 44 forks source link

Bug: v1.3.0 coloring removed when using UISearchBar #6

Closed artworkad closed 9 years ago

artworkad commented 9 years ago

Just noticed, it broke with the update from 1.2.3 -> 1.3. I have a UISearchBar above the table view. When I tap on the search bar the BFPaperTableViewCell colors are removed and default to gray. I don't have this problem with version 1.2.3, only with 1.3

github

bfeher commented 9 years ago

This is probably (can't check right now) caused by the cells resetting their defaults on prepareForReuse.

If you are subclassing BFPaperTableViewCell, just override that method and add your custom setup in it as well.

I thought it would be best to reset the cell to default on prepareForReuse to prevent any customization from bleeding over to new cells, but I guess I shouldn't. I'll fix this tomorrow.

bfeher commented 9 years ago

I pushed version 1.3.1 which should fix this. Please let me know if it's fixed. Thanks!

artworkad commented 9 years ago

@bfeher great, issue solved.