In IOS8, you will find that the split line is not all displayed by default, and the code that is applicable in iOS7
if ([Self.mycardtableview respondstoselector: @selector (separatorinset)]) { = uiedgeinsetszero; }
It doesn't work anymore. And to add the code in the Viewdidload
if ([Self.mycardtableview respondstoselector: @selector (setlayoutmargins:)]) { [Self.mycardtableview Setlayoutmargins:uiedgeinsetszero]; }
and join 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]; } }
The problem of UITableView dividing line short in iOS8