iOS7 uses the following method to make UITableView cell lines left
Self. TableView. Uiedgeinsetszero;
But in the iOS8, the approach has failed.
After flipping through iOS8 document discovery, you can solve this problem in the following two ways
Method One:
-(void)Viewdidload{[...]Self.TableView.Separatorinset=Uiedgeinsetszero;If([Self.TableViewRespondstoselector:@selector(Layoutmargins)]){Self.TableView.Layoutmargins=Uiedgeinsetszero;}}-(UITableViewCell*)TableView:(UITableView*)tableview cellforrowatindexpath: (NSIndexPath *) indexpath {[...] cell. Separatorinset = uiedgeinsetszeroif ([cell respondstoselector:< Span class= "K" > @selector (layoutmargins{cell. Layoutmargins = uiedgeinsetszero}}
Method two:
-(uiedgeinsets) layoutmargins{return uiedgeinsetszero;}
< Span class= "o" >< span class= "n" > < span class= "n" >
/span>
IOS 8 UITableView cell lines cannot be left resolved