Left justified code in iOS8
// Add the following code -(void) TableView: (UITableView *) TableView Willdisplaycell: (UITableViewCell *) cell Forrowatindexpath: (Nsindexpath *) indexpath{ if ([TableView respondstoselector: @selector (Setseparatorinset:)]) { [TableView Setseparatorinset:uiedgeinsetszero]; } if ([TableView respondstoselector: @selector (setlayoutmargins:)]) { [TableView setlayoutmargins: Uiedgeinsetszero]; } if ([Cell Respondstoselector: @selector (setlayoutmargins:)]) { [cell Setlayoutmargins:uiedgeinsetszero];} }
Left justified code in IOS7
if 7 = Uiedgeinsetsmake (0000);}
If you use nib or storyboard in iOS7, you can change the mode of separator insets to custom, and change the left 15 to 0 reprint, please specify: Tian Fox blog»ios7 tableview separatorinset Cell Split Line left justified
The above contents are quoted separately http://blog.sina.com.cn/s/blog_5da93c8f0101qgdz.html http://roybaby.blog.51cto.com/1508945/1558182
iOS8 ios7 tableview Cell split line left justified