我使用这个,但如果我在iPhone 4上然后重新启动我的应用程序它退出, 问题是,它不知道indexpath.row,现在怎么解决这个isuee ??/应用在iphone 4退出
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
int j=indexPath.row;
if(j==0)
{
UIImage *bgImage = [UIImage imageNamed:@"logo_jurong.png"];
UIImageView *bgImageView = [[UIImageView alloc] initWithImage:bgImage];
[bgImageView setFrame:CGRectMake(7, 13, 30, 30)];
//Finally give this imageView to the cell
[cell.contentView addSubview:bgImageView];
[bgImage release];
}
}
请告诉我调试器或任何崩溃报告的输出? – WrightsCS 2011-04-14 06:35:34
在这里你没有返回细胞 – 2011-04-14 06:39:56