0
なぜ私はNSArray *topLevelObjects
を割り当てる行に "EXC_BAD_ACCESS"が表示されるのか理解できません。同じコードと同じ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ではなく、FilesOwnerに接続されています。そして、それは他のtableViewで完全に動作します – Abramodj