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

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -