Skip to content

Instantly share code, notes, and snippets.

@littlebobert
Created August 12, 2016 23:00
Show Gist options
  • Save littlebobert/b43f068f0dff44bf98ab8b780af349fe to your computer and use it in GitHub Desktop.
Save littlebobert/b43f068f0dff44bf98ab8b780af349fe to your computer and use it in GitHub Desktop.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"GuideCell" forIndexPath:indexPath];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"GuideCell"];
}
Guide *guide = [self.guides objectAtIndex:indexPath.row];
cell.textLabel.text = guide.name;
cell.detailTextLabel.text = @"xxx";
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment