标签: iphone objective-c xcode uitableview
是否有重命名特定单元格的文本?我知道行号是什么,但我不知道如何更改单元格标题。
答案 0 :(得分:6)
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section]; UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; cell.textLabel.text = "new text";