Skip to content

Instantly share code, notes, and snippets.

@denispeyrusaubes
Last active December 21, 2015 06:14
Show Gist options
  • Save denispeyrusaubes/69cee03d1dae9d5b07a8 to your computer and use it in GitHub Desktop.
Save denispeyrusaubes/69cee03d1dae9d5b07a8 to your computer and use it in GitHub Desktop.
Basic cellForRowAtIndexPath implementation
- (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