PDA

View Full Version : searchbar between navigation bar and table view




psudheer28
Jul 17, 2010, 04:53 AM
Hi all,

I am developing an application, in that i have taken navigation bar and table view.

I have taken a button on navigation bar. on clicking that button I want Search bar to pop up underneath navigation bar and table view should automatically slide down.

After clicking cancel button in search bar it should disappear and table view should slide up to its original position under navigation bar.

search bar should appear in between navigation bar and table view.



Thanks

sudheer



robbieduncan
Jul 17, 2010, 06:23 AM
Use a UISearchDisplayController (http://developer.apple.com/iphone/library/documentation/uikit/reference/UISearchDisplayController_Class/Reference/Reference.html).

And before you ask: no I will not provide "sample code" for you to steal for your app. It's very simple to work out from the documentation.