iphone - How to set Title for cell using Dictionary -
i want use nsdictionary instead of cell array. following code: - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath{ uitableviewcell *cell=[[uitableviewcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:@"cell"]; //add bg image cell //add label uilabel *celltitle=[[uilabel alloc]initwithframe:cgrectmake(15, 7, 300, 30)]; [celltitle setbackgroundcolor:[uicolor clearcolor]]; [celltitle setfont:[uifont fontwithname:@"helvetica-bold" size:12]]; [celltitle settextcolor:[uicolor darkgraycolor]]; [celltitle settext:[[cellarray objectatindex:indexpath.section] objectatindex:indexpath.row]]; [cell.contentview addsubview:celltitle]; return cell; } nsdictionary *dictionary1 = [[nsdictionary alloc] initwithobjectsandkeys:@"abc",@"name",@"12",@...