/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@implementation UITableViewCell (NibLoader) #pragma mark Load cell nib for (id currentObject in topLevelObjects) { if ([currentObject isKindOfClass:class]) { return currentObject; } } return nil; } // Load custom cell // ref link: http://www.e-string.com/content/custom-uitableviewcells-interface-builder UITableViewCell *itemCell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier]; if (itemCell == nil) { itemCell = [self loadViewWithNibName:nibName owner:self class:[UITableViewCell class]]; } return itemCell; } @end