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.

table image

i have implemented uitableview in viewcontroller, , added custom cell , displayed data shown

i have implemented

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...?

please take prototype cell or custom cell


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -