Objective c 如何打印存储在NSMutable数组中的值。。到UITableView单元格

Objective c 如何打印存储在NSMutable数组中的值。。到UITableView单元格,objective-c,Objective C,我有这个coe…有人能告诉我如何在UITable view单元格上打印它吗 [customerDetailsArray addObject:[NSDictionary Dictionary WithObjects和Keys:nameStr,@“name”,cityStr,@“city”,countryStr,@“country”,nil]; NSLog(@“customerDetailsArray%@”,customerDetailsArray) 我正试着用这种方法,但没有成功 if(index

我有这个coe…有人能告诉我如何在UITable view单元格上打印它吗

[customerDetailsArray addObject:[NSDictionary Dictionary WithObjects和Keys:nameStr,@“name”,cityStr,@“city”,countryStr,@“country”,nil]; NSLog(@“customerDetailsArray%@”,customerDetailsArray)

我正试着用这种方法,但没有成功

if(indexPath.row==0) { cell.textLabel.text=[NSString stringWithFormat:@'”[[customerDetailsArray objectAtIndex:indexPath.row]objectForKey:@“name”]; }


谢谢你。如果你至少喜欢我的问题,就接受它吧……

你每次都在输入一个空白字符串。将其更改为:

if(indexPath.row == 0) { 
    cell.textLabel.text = [NSString stringWithFormat:@"%@",[[customerDetailsArray objectAtIndex:indexPath.row] objectForKey:@"name"]]; 
}

请注意
%@

谢谢Matt的快速回复,但您知道..即使我尝试过..但UITable view cell上会出现空值..但是当我使用NSLog打印数组时…它会正确打印..等待您的响应Matt您确实将
%@
放入
[NSString stringWithFormat:@“%@”
?你能看到阵列的样子吗?