EurekaCommunity / ViewRow

ViewRow is a Eureka row that allows you to display any UIView (or UIView sunclass) within a Eureka row. Views can be created in code or loaded from nib files.
MIT License
77 stars 16 forks source link

Missing super.updateCell() cause updateCell callback never get called #17

Closed xiao99xiao closed 5 years ago

xiao99xiao commented 5 years ago

There is a comment about it but no reason is explained here. Can anyone tell me why? This makes reloading the custom view almost impossible.

//  NOTE: super.updateCell() deliberatly not called.
alldritt commented 5 years ago

This is because the super's updateCell() does things that are incompatible with ViewRow. For instance, it updates the cell's title in ways that are not helpful.

I have applications using ViewRow that update over time, and I'm not experiencing problems. I update the custom view's contents directly and have it redraw its self without any problems.