Unrecognized selector sent to instance Custom Cell
ios, objective-c, uitableview, xcode
Solution
Are you absolutely sure that:
1) .. your class "HomeCell" is named correct for the table cell? Select the cell, select 'identity inspector' -> section 'Custom Class' and take a look
2) .. referencing outlets with connections to each label/ui image is made? Try select your cell again, select 'Connections inspector' and take a look
Problem
I am trying to make a Custom Cell for my UITableView. So, I create a class (`UITableViewCell`) and I named HomeCell. This class has a xib file with label named titleCell. In my cellForRowAtIndexPath method I wrote: ``` HomeCell *cell = (HomeCell *)[tableView dequeueReusableCellWithIdentifier:@"HomeCell"]; if(cell == nil){ NSArray *xib = [[NSBundle mainBundle] loadNibNamed:@"HomeCell" owner:self options:nil]; for(id oneObject in xib){ if([oneObject isKindOfClass:[HomeCell class]]){ cell = (HomeCell *) oneObject; } } } //Get object at index data HomeObjectCell *tempObject = [self.dataForCell objectAtIndex:indexPath.row]; NSLog(@"Title : %@",tempObject.title); // The tempObject.title return a NSString example cell.titleCell.text = tempObject.title; // <-- ERROR ! ``` When I run the application, I got: [UITableViewCell titleCell]: unrecognized selector sent to instance 0x6e61890 Any idea?