如何检测 UITableViewCell 派生对象何时从表中移除并进入缓存?
最佳答案
实现以下任一方法。当从表中移除时,superview 将变为 nil。当添加回表时,superview 将被设置为 TableView 。
- (void)willMoveToSuperview:(UIView *)newSuperview;
- (void)didMoveToSuperview;
另见
- (void)prepareForReuse;
关于iphone - 检测 UITableViewCell 何时超出范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3330735/