i using uzyscircularprogresspulltorefresh in order refresh tableview. uitableview have 1 static section title , want fixed @ top of table(that's why don't want use uitableviewstylegrouped). when uitableview in refreshing state, , start scrolling it, cells being scrolling under header section bad design. kindly check image
you can test adding following project:
-(nsstring *)tableview:(uitableview *)tableview titleforheaderinsection:(nsinteger)section { return @"header section"; }
i tried find solution didn't find after lot of searching. can me solving this? how fix design issue in way?
- (void)scrollviewdidscroll:(uiscrollview *)scrollview { cgfloat navbarmaxy = cgrectgetmaxy(self.navigationcontroller.navigationbar.frame); if (scrollview.contentinset.top > navbarmaxy) { if (scrollview.contentinset.top > -scrollview.contentoffset.y) { uiedgeinsets insets = scrollview.contentinset; insets.top = max(-scrollview.contentoffset.y, navbarmaxy); scrollview.contentinset = insets; } } }
Comments
Post a Comment