Я действительно не могу понять, почему я получаю «EXC_BAD_ACCESS» в строке, где я назначаю NSArray *topLevelObjects
. Это безумие, потому что я использую точно такой же код и тот же BlogCell в другом tabliView
, и там он отлично работает!
- (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;
}