重命名单元格的文本 - iPhone SDK

时间:2010-10-04 00:59:57

标签: iphone objective-c xcode uitableview

是否有重命名特定单元格的文本?我知道行号是什么,但我不知道如何更改单元格标题。

1 个答案:

答案 0 :(得分:6)

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section];
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cell.textLabel.text = "new text";