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

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -