iOS 7 UItableview单元格背景视图

Tec*_*hie 3 iphone objective-c ios ios7

我使用图像视图作为tableview单元格背景视图.当我在xcode 4.x中编译我的源代码时,它工作正常,即,在iOS 6.x和7.0中,它工作正常.但是当我在xcode 5.0中编译我的源代码时,背景图像视图没有出现在iOS 7中.

任何想法,为什么它不起作用?在iOS 7中对uitableview单元格背景视图有任何限制吗?

if (cell == nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:accountProfileTypeCell];
    UIImageView *cellBgView =[[UIImageView alloc]init];
    [cellBgView setImage:[UIImage imageNamed:@"cellBgView.png"]];
    [cell setBackgroundView:cellBgView];
}
Run Code Online (Sandbox Code Playgroud)

sha*_*hil 7

尝试添加:cell.backgroundColor = [UIColor clearColor];