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];