@property (nonatomic, retain) IBOutlet UILabel* customLabel;
Automatic reference counting (ARC) prohibits explicit invocation of retain . Try to remove this.
As for the error, you are returning a UITableViewCell , not your custom cell. In addition, you never highlight your ResultsCustomCell .
- (ResultsCustomCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CellIdentifier"; ResultsCustomCell *cell = (ResultsCustomCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[ResultsCustomCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; }
Also, your subclass of UITableViewCell does not declare the (obviously required) init method.
ResultsCustomCell.h:
ResultsCustomCell.m:
#import "ResultsCustomCell.h" @implementation ResultsCustomCell @synthesize myLabel; - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) {
EDIT: I saw that you are using a storyboard. My suggestion may or may not help you. I have never used a storyboard.
source share