Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* example of a silly way to load a UITableViewCell from a standalone nib */
- + (CEntryTableViewCell *)cell
- {
- // TODO -- this is really silly.
- NSArray *theObjects = [[NSBundle mainBundle] loadNibNamed:@"EntryTableViewCell" owner:self options:NULL];
- for (id theObject in theObjects)
- if ([theObject isKindOfClass:self])
- return(theObject);
- NSAssert(NO, @"Could not find object of class CEntryTableViewCell in nib");
- return(NULL);
- }
Add Comment
Please, Sign In to add comment