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.
私はテーブルビューを持っています。タグ値を設定した特定のセルに対して、今、私のメソッドでは、インデックス パスを受け取ります。インデックス パスを使用して cell.tag にアクセスするにはどうすればよいですか。
UITableViewCell *cell = [theTableView cellForRowAtIndexPath:theIndexPath]; NSInteger tag = cell.tag;
これが役立つことを願っています。
int yourCellsTag = [[yourTableView cellForRowAtIndexPath:indexPath] tag];