insertRowsAtIndexPaths: of custom UITableViewCells ends in unrecognized selector sent to instance
问题 I want to insert some custom cells in my UITableView . So what I'm doing is simply this: NSMutableArray *arrayOfCells = [[NSMutableArray alloc] init]; for(int i = 0 ; i < 4 ; i++) { CustomCell *cell = [[CustomCell alloc] init:myText]; [arrayOfCells addObject:cell]; } [table insertRowsAtIndexPaths:arrayOfCells withRowAnimation:UITableViewRowAnimationTop]; But the inserting line returns this error: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CustomCell