ios - How to hide UIRefreshControl when UISearchBar becomes active? -
i have tableview supports pull down refresh , search (separately). if pull down refresh , click search bar, how can hide refreshcontrol?
@bejibun led me answer based on this comment. need set tableview's offset (0 - refresh_control_height).
so.. self.tableview.contentoffset = cgpointmake(0, 0 - self.refreshcontrol.frame.size.height);
Comments
Post a Comment