开发者

how can i print values stored in NSMutable Array.. to UITableView cell

m having this coe....could any one tell me how can i print it on UITable view cell

[customerDetailsArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:nameStr,@"name",cityStr,@"city",countryStr,@"country",nil]]; NSLog(@"customerDetailsArray %@",customerDetailsArray);

I am trying by this way but nt successful

if(indexPath.row == 0) { 开发者_开发百科 cell.textLabel.text = [NSString stringWithFormat:@"",[[customerDetailsArray objectAtIndex:indexPath.row] objectForKey:@"name"]]; }

Thank You..If u like my question atleast accept it......


You are putting in a blank string every time. Change it to this:

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

Notice the %@

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜