uitableview - How to find out if a UITableViewCell has scrolled away and is invisible -


i have uitableviewcell observes (via kvo) properties. makes sense if cell visible. want remove observer when cell scrolls away, , before prepareforreuse called.

how can this?

your table view delegate can implement

- (void)tableview:(uitableview *)tableview didenddisplayingcell:(uitableviewcell *)cell forrowatindexpath:(nsindexpath *)indexpath 

and in there can call method on cell perform cleanup want.


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -