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
Post a Comment