答案 0 :(得分:4)
在您的cellForRowAtIndexPath
中,您只需设置单元格的UILabel
,就像这样:
cell.countLabel.text = [NSString stringWithFormat:@"%ld)", (long)indexPath.row +1];
答案 1 :(得分:0)
Xcode 8.0 in
cell.countLabel.text = [nsstring stringwithformate:@“%d”,indexpath.row + 1];