直到2天我試圖從一個plist文件中加載一些圖像到我的表格視圖行中。我在創建NSMutableArray的時候,在返回之前將這行 cell.imageView.image = [UIImage imageNamed:[images objectAtIndex:row]];
添加到了「cellForRowAtIndexPath」方法中,xcode給了我這個錯誤: 使用未聲明的標識符'cell'和不兼容的整數轉換指針向NSUInteger類型的參數發送double。TableView的ImageView
什麼問題?
一小段代碼可能會有幫助 – iSofTom
試試這個NSString * CellIdentifier = [NSString stringWithFormat:@「%i」,indexPath.row]; UITableViewCell * cell =(UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; –
@Venkat Manohar我試過你的代碼機器人沒有圖像。 –