Search code examples
iosobjective-cuitableviewunrecognized-selector

unrecognized selector sent to instance 0x7ff971e1f920


When I run my iOS app on the iPhone 6 simulator on Xcode 6.1 it stops on this line:

[cell configure:[feeds objectAtIndex:indexPath.row]];

Error:

'-[UITableViewCell configure:]: unrecognized selector sent to instance 0x7ff971e1f920'

Solution

  • Presumably you've defined a custom cell subclass with a configure: method.

    Your subclass isn't being used - that message means you're calling the method on a plain UITableViewCell.

    The most common cause of this is forgetting to set the cell class in the storyboard. Otherwise, you'll need to show how you're creating cell.