On iOS8 [TableView Setseparatorinset:uiedgeinsetsmake (0,0,0,0)]; not working
The following methods have been tested to work correctly on iOS7 8
1-(void) Viewdidlayoutsubviews2 {3 if([Self.tableview respondstoselector: @selector (setseparatorinset:)]) {4[Self.tableview Setseparatorinset:uiedgeinsetsmake (0,0,0,0)];5 }6 7 if([Self.tableview respondstoselector: @selector (setlayoutmargins:)]) {8[Self.tableview Setlayoutmargins:uiedgeinsetsmake (0,0,0,0)];9 }Ten } One A-(void) TableView: (UITableView *) TableView Willdisplaycell: (UITableViewCell *) cell Forrowatindexpath: (Nsindexpath *) Indexpath - { - if([Cell Respondstoselector: @selector (setseparatorinset:)]) { the [Cell Setseparatorinset:uiedgeinsetszero]; - } - - if([Cell Respondstoselector: @selector (setlayoutmargins:)]) { + [Cell Setlayoutmargins:uiedgeinsetszero]; - } +}
(GO) IOS8 set TableView Separatorinset Split line start from the top of the border