The correct method is to call the custom cell in cellForRowAtIndexPath.
Check out two main things:
1. on the storyboard and click on a cell in the attribute inspector, check that the cell has the correct identifier

2. set cellForRowAtIndexPath like this:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath object:(PFObject *)object{ CustomCell *cell = (CustomCell * )[self.tableView dequeueReusableCellWithIdentifier:@"YOUR CELL NAME" forIndexPath:indexPath];
So in your case try:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath object:(PFObject *)object{ CustomCell *cell = (CustomCell * )[self.tableView dequeueReusableCellWithIdentifier:@"YOUR CELL NAME" forIndexPath:indexPath]; NSString * teeString =[object objectForKey:@"roundTee"]; NSString* courseString = [object objectForKey:@"roundCourse"]; NSString * courseString2 = [[courseString stringByAppendingString:@" - "]stringByAppendingString:teeString]; NSString * dateString = [object objectForKey:@"roundDate"]; NSString * scoreString = [object objectForKey:@"roundScore"]; NSString * differentialString = [object objectForKey:@"roundDifferential"]; cell.courseNameCell.text = courseString2; cell.dateCell.text = dateString; cell.scoreCell.text= scoreString; cell.differentialCell.text=differentialString; return cell; }
Remember to import the custom cell subclass into File.m
#import "YourCustomCell.h"
and set the cell in the identity inspector

kAiN
source share