Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chuyeow/155478 to your computer and use it in GitHub Desktop.
Save chuyeow/155478 to your computer and use it in GitHub Desktop.
static NSString *CellIdentifier = @"Cell";
cell = (MyCustomCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
NSArray *nibContents = [[NSBundle mainBundle] loadNibNamed:@"TableCell" owner:self options:nil];
cell = [nibContents objectAtIndex:0];
}
// do your customization
return cell;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment