-[Seccion isEqualToString:]: unrecognized selector sent to instance 0xb43e580
The instance 0xb43e580
is not a string but it is a object is of class Seccion
. You should be looking for the attribute called seccion
.
Change your numberOfRowsInSection
:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
if ([[[CoreDataBase oneSeccion] seccion] isEqualToString:@"prep"]) {
// ^^ ^^^^^^^^
return _TitlePrep.count;
}
return 0;
}
You might want to consider using a different name for the attribute. Having an attribute called the same as the class can be confusing.