点击tableview后要获取当前点击的cell
1.
NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow];
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
cell.textLabel.text= @"abc";
获取cell后可对指定的cell操作
本文介绍了一种在iOS应用中点击TableView后如何获取当前点击的Cell的方法,并提供了具体的代码实现。
1.
NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow];
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
cell.textLabel.text= @"abc";
获取cell后可对指定的cell操作

被折叠的 条评论
为什么被折叠?