objective c - Hiding the searchbar till the user swipes it down for iOS 7 -


i have added searchbar tableheaderview of tableview. however, writing

self.tableview.contentoffset = cgpointmake(0, 44);  

or

[self.tableview scrolltorowatindexpath:[nsindexpath indexpathforrow:0 insection:0] atscrollposition:uitableviewscrollpositiontop animated:no]; 

hides searchbar behind navigation bar @ top not visible when user swipes tableview down. hides again. seems work fine in ios 6 not in ios 7 beta. need do?

fixed putting ..

self.edgesforextendedlayout = uirectedgenone; 

in viewwillappear, needs check ios 7 before executing, new method introduced in ios7.

plasma


Comments