objective c - how to add row line for the tableview in ios -
i want display table details in tableview
in form of rows , columns show below.
i have implemented uitableview
in viewcontroller
, , added custom cell , displayed data shown
now dont want space between cell .instead need vertical line between cell in image.
here code
-(uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { attendencetableviewcell *cell = [tableview dequeuereusablecellwithidentifier:@"cell"]; attendencetableviewcell*cell=[[attendencetableviewcell alloc]init]; if (cell == nil) { cell = [[ attendencetableviewcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:@"cell"]; } cell.textlabel.textcolor=[uicolor colorwithred:0.24 green:0.67 blue:0.94 alpha:1.0]; _attendencetableview.tablefooterview = [[uiview alloc] initwithframe:cgrectzero]; cell.datelabel.text=@"date"; cell.timeinlabel.text=@"in"; cell.timeoutlabel.text=@"out";; cell.durationlabel.text=@"duration"; cell.statuslabel.text=@"status"; [spinner stopanimating]; return cell; }
how can achieve it...?
Comments
Post a Comment