ios - Remove Separator from Grouped UItableview -
i'm using uitableview style grouped seperator no
when table view loads see small distance between cells.
and when scrolled goes away
need rid of line. i'm missing.
use this, you.
write in viewdidload
tableview.tablefooterview = [[uiview alloc] initwithframe:cgrectzero]; and write method uitableview
-(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]; } } 

Comments
Post a Comment