Skip to content

Instantly share code, notes, and snippets.

@micahrj
Created March 28, 2011 20:09
Show Gist options
  • Save micahrj/891164 to your computer and use it in GitHub Desktop.
Save micahrj/891164 to your computer and use it in GitHub Desktop.
- (UITableViewCell *)tableview:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *myIdentifier = @"myIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:myIdentifier];
if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:myIdentifier] autorelease]; }
cell.textLabel.text = [toDoList objectAtIndex:indexPath.row];
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment