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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -