chuyeow (owner)

Revisions

gist: 155478 Download_button fork
public
Public Clone URL: git://gist.github.com/155478.git
Embed All Files: show embed
Example custom table view cell from nib.m #
1
2
3
4
5
6
7
8
9
10
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;