Add the following code-(void) TableView: (UITableView *) TableView Willdisplaycell: (UITableViewCell *) cell Forrowatindexpath: ( Nsindexpath *) indexpath{if ([TableView respondstoselector: @selector (setseparatorinset:)]) {[TableView Sets Eparatorinset:uiedgeinsetszero]; } if ([TableView respondstoselector: @selector (setlayoutmargins:)]) {[TableView Setlayoutmargins:uiedgeinset Szero]; } if ([Cell respondstoselector: @selector (setlayoutmargins:)]) {[Cell Setlayoutmargins:uiedgeinsetszero]; }}
IOS 7
@property (nonatomic) uiedgeinsets separatorinset Ns_available_ios (7_0) ui_appearance_selector; Allows customization of the frame of cell separators
IOS 8
@property (nonatomic) uiedgeinsets layoutmarginsdescription The default spacing to use when laying out content in the Vie W.availability IOS (8.0 and later) declared in Uiview.hreference UIView Class Reference
This article is from the "Code Road" blog, be sure to keep this source http://roybaby.blog.51cto.com/1508945/1558182
IOS 8 UITableViewCell Split line left justified