开发者

Rename cell's text - iPhone SDK

开发者 https://www.devze.com 2023-01-18 09:34 出处:网络
Is there anyway of renaming a specific cell\'s text? I know what the row number is, but I d开发者_开发技巧on\'t know how to change the cell title.NSIndexPath *indexPath = [NSIndexPath indexPathForRow:

Is there anyway of renaming a specific cell's text? I know what the row number is, but I d开发者_开发技巧on't know how to change the cell title.


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

精彩评论

暂无评论...
验证码 换一张
取 消