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 -

jquery - Keeping Kendo Datepicker in min/max range -

cordova - Plugin preferences in config.xml -