ios - Remove Separator from Grouped UItableview -


i'm using uitableview style grouped seperator no

when table view loads see small distance between cells.

enter image description here

and when scrolled goes away

enter image description here

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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -