Skip to content

Instantly share code, notes, and snippets.

@jagbolanos
Created February 3, 2012 16:47
Show Gist options
  • Save jagbolanos/1731067 to your computer and use it in GitHub Desktop.
Save jagbolanos/1731067 to your computer and use it in GitHub Desktop.
Load XiB for TableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
NSArray *screens=[[NSBundle mainBundle] loadNibNamed:@"StatusViewTableViewCell" owner:self options:nil];
[self addSubview:[screens objectAtIndex:0]];
}
return self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment