Terminación de aplicación debido a excepción no detectada 'NSUnknownKeyException', razón: '[setValue: forUndefinedKey:]:. esta clase no es valor de la clave de codificación compatible para la clave buttonOfFirstView'NSUnknownKeyException setValue: forUndefinedKey:
¿Por qué me sale este error? Estoy tratando de hacer una celda de tabla a través de XIB. Después de agregar este código arroja la excepción anterior.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
static NSString *CellIdentifier = @"MyCell";
MyTableViewCell *cell = (MyTableViewCell*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
NSArray *arrayCellXib = [[NSBundle mainBundle] loadNibNamed:@"MyTableViewCell"
owner:self
options:nil];
....
}
.....
return cell;
}
¿Cómo resolverlo?
wat es su buttonOfFirstView.? –
un botón dentro de la celda de la tabla IBOutlet UIButton buttonOfFirstView; – dayitv89
compruebe si está conectado correctamente –