Last active
December 21, 2015 06:14
-
-
Save denispeyrusaubes/69cee03d1dae9d5b07a8 to your computer and use it in GitHub Desktop.
Basic cellForRowAtIndexPath implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"myCell"]; | |
NSString* label = [NSString stringWithFormat:@"Section: %d",indexPath.section]; | |
cell.textLabel.text = label; | |
NSString* detailLabel = [NSString stringWithFormat:@"Row: %d",indexPath.row]; | |
cell.detailTextLabel.text = detailLabel; | |
return cell; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment