How can I detect when a UITableViewCell derived object gets removed from a table and into the cache?
+4
A:
Implement either of the following methods. When removed from the table, superview will become nil. When added back to the table, superview will be set to the table view.
- (void)willMoveToSuperview:(UIView *)newSuperview;
- (void)didMoveToSuperview;
Also see
- (void)prepareForReuse;
drawnonward
2010-07-25 19:48:38