我确信这是一个简单的修复,但我似乎无法找到它。我有一个当前工作正常的表格视图,设置为:
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
}
NSUInteger row = [indexPath row];
cell.textLabel.text = [creedsList objectAtIndex:row];
cell.imageView.image = [UIImage imageNamed:[creedsImages objectAtIndex:row]];
return cell;
Admob SDK 说要添加这一行:
[cell.contentView addSubview:[AdMobView requestAdWithDelegate:self]];
但随后它会在每个单元格中填充广告。有什么想法吗?
编辑:我正在使用此代码来填充:
NSUInteger row = [indexPath row];
cell.textLabel.text = [creedsList objectAtIndex:row];