You can do something like this in your tableView:cellForRowAtIndexPath:
method
cell.textLabel.text = [NSString stringWithFormat:@"%i", indexPath.row+1];
Edit:
Then make sure you do the following:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 10; <<<<====specify here the number of rows to be displayed.
}
Addendum:
If you already have things stored in your labels and would like to store still the numbers, try the do the following:
In your storyboard, click on the cell and then change the style to "Subtitle".
Then back to your table view controller, add the following line to the aforementioned method:
cell.detailTextLabel.text = [NSString stringWithFormat:@"%i", indexPath.row+1];
So now you have both labels, one in which you would like to store your strings and the sub labels where you have the number of rows as discussed.
Adding screenshot: