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 %@
精彩评论