Iphone 表视图分组表视图有问题

Iphone 表视图分组表视图有问题,iphone,uitableview,Iphone,Uitableview,tableview问题:我正在使用3 uilable显示产品名称、一些说明和图像。显示所有数据,但在滚动表格时,标签会用另一个实际文本填充。。我们如何处理这件事? 代码: 删除代码中的行 if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 并添加以下行 cell =

tableview问题:我正在使用3 uilable显示产品名称、一些说明和图像。显示所有数据,但在滚动表格时,标签会用另一个实际文本填充。。我们如何处理这件事? 代码:


删除代码中的行

if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];  
并添加以下行

cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]

由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“UITableView数据源必须从tableView返回单元格:CellForRowatineXpath:”已检查编辑的答案我忘记再添加一行代码
if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];  
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]