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

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -