iphoneuisearchbaruisearchbardisplaycontrol

making the searchbar to stay on the top


Is it possible to change the iphone contact application kind of screen to have the searchbar staying on the top always ? if yes how ?


Solution

  • I found out the way to do it.

    here it is

    1. pull the table view to a separate view
    2. place the search bar first and then the table view in the new separate view
    3. create a iboutlet for table view and connect the same.
    4. make appropriate changes for tableview delegate.
    5. Change the measurments of the uitableview added to the new tableview.