Skip to content

Instantly share code, notes, and snippets.

@sbrocket
Created December 29, 2009 01:15
Show Gist options
  • Select an option

  • Save sbrocket/265078 to your computer and use it in GitHub Desktop.

Select an option

Save sbrocket/265078 to your computer and use it in GitHub Desktop.
+ (AppDisplayView*)loadFromNib {
AppDisplayView *cell = nil;
NSArray *nibObjects = [[NSBundle mainBundle] loadNibNamed:@"AppDisplayView" owner:self options:nil];
for (id object in nibObjects) {
if ([object isKindOfClass:self]) {
cell = object;
}
}
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment