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.
セルがデキューされ、セル内で再利用されるときに、iOS 開発でオブザーバーを追加することは可能UITableViewですか?
UITableView
ありがとう。
//セルにidのタグを付けるために使用します
cell.Tag = item.ID;
UITableViewCell をサブクラス化してから、[UITableViewCell prepareForReuse]メソッドをオーバーライドできます。これは、セルのサブクラスに関連付けられた再利用識別子がある場合にのみ機能するため、そのプロパティの値を設定してください。
[UITableViewCell prepareForReuse]