I have a custom table view cell that I created using XIB:

I also linked the XIB file to my custom UITableView cell.
But now when I try to load a cell into - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath with the following codes:
MyCustomTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"]; if (cell == nil) {
I will get [<NSObject 0x8a5b970> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key hitMeButton.
I searched on the Internet, and one of the possible reasons may be that the XIB is not connected with IBOutlet, I checked so that it seems that it is not.
source share