0
Я действительно не понимаю, почему я получаю «EXC_BAD_ACCESS» в строке, где я назначаю NSArray *topLevelObjects
. Это безумие, потому что я использую точно такой же код и тот же BlogCell в другом tabliView
, и там он работает отлично!Очень странная проблема в cellForRowAtIndexPath
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
int r = indexPath.row;
static NSString *CellIdentifier = @"Blog";
BlogCell *cell = (BlogCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"BlogCell" owner:self options:nil];
cell = [topLevelObjects objectAtIndex:0];
}
return cell;
}
Каждая розетка подключена, но к UITableViewCell, а не к файловому устройству. И он отлично работает в другом tableView – Abramodj