This question appeared many times, each time is the Niang, the command +c,command + V, has written to forget, today hereby records:
On the iOS8 [TableView Setseparatorinset:Uiedgeinsetsmake(0,0,0,0)]; not working.
You can add the following code to the TableView creation location:
if ([Self.tableview respondstoselector: @selector (setseparatorinset:)]) { [Self.tableview setseparatorinset: Uiedgeinsetsmake (0,0,0,0)]; } if ([Self.tableview respondstoselector: @selector (setlayoutmargins:)]) { [Self.tableview setlayoutmargins: Uiedgeinsetsmake (0,0,0,0)]; }
Then add the following code to the UITableView proxy method:
-(void) TableView: (UITableView *) TableView Willdisplaycell: (UITableViewCell *) cell Forrowatindexpath: ( Nsindexpath *) indexpath { if ([Cell Respondstoselector: @selector (setseparatorinset :)]) { [cell Setseparatorinset:uiedgeinsetszero]; } if ([Cell Respondstoselector: @selector (setlayoutmargins:)]) { [cell Setlayoutmargins:uiedgeinsetszero]; } }
IOS8 set TableView Separatorinset split line starting from the top of the border