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

lab*_*b12 1 iphone xcode objective-c uitableview

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

tit*_*coy 6

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section];
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cell.textLabel.text = "new text";
Run Code Online (Sandbox Code Playgroud)