Split Line Shelf iOS8 UITableView Split Line shelf approach
IOS8 cell Split Line shelf if ([_tableview respondstoselector: @selector (setseparatorinset:)]) { [_tableview Setseparatorinset:uiedgeinsetszero];} if ([_tableview respondstoselector: @selector (setlayoutmargins:)]) { [_tableview setlayoutmargins: Uiedgeinsetszero];} IOS8 Cell Split Line shelf-(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];} }
Clear extra cell split lines (cell is rare)
_tableview.tablefooterview=[[uiview alloc]init];//Clear redundant splitter lines
Turn off UITableViewCell's selected effect
Cell.selectionstyle = uitableviewcellselectionstylenone;//Colorless
Uncheck State
-(void) TableView: (UITableView *) TableView Didselectrowatindexpath: (Nsindexpath *) indexpath{ [TableView Deselectrowatindexpath:indexpath animated:yes];//Uncheck Status}
Custom UITableViewCell Background When selected
Cell.selectedbackgroundview = [[Uiimageview alloc] initwithimage:[uiimage imagenamed:@ "Cellart.png"]];// Font Color Cell.textLabel.highlightedTextColor = [Uicolor Orangecolor]; [Cell.textlabel settextcolor:orangecolor];//sets the color of the cell's font
TableView Common Tips