Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ビューが削除されようとしているかどうかを確認する方法はありますか? 私は UITableViewCell をサブクラス化し、テーブルによって破棄されようとしている場合にセルに通知したいと考えています (私のテーブルにはセクションごとに可変サイズのセルがあるため、セルを破棄する場合があります)。
次のメソッドを上書きできます。
- (void)willRemoveSubview:(UIView *)subview
http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html#//apple_ref/occ/instm/UIView/willRemoveSubview :