Guest User

Untitled

a guest
May 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. /* example of a silly way to load a UITableViewCell from a standalone nib */
  2.  
  3. + (CEntryTableViewCell *)cell
  4. {
  5. // TODO -- this is really silly.
  6. NSArray *theObjects = [[NSBundle mainBundle] loadNibNamed:@"EntryTableViewCell" owner:self options:NULL];
  7. for (id theObject in theObjects)
  8. if ([theObject isKindOfClass:self])
  9. return(theObject);
  10. NSAssert(NO, @"Could not find object of class CEntryTableViewCell in nib");
  11. return(NULL);
  12. }
Add Comment
Please, Sign In to add comment