tags:

views:

11

answers:

1

i want to make my serach bar as static but not scrolling with tableview i did this self.tableView.tableHeaderView = searchBar;

but i want to make my search bar just static i have a UItableViewController

plz help how to make it static Thanks

A: 

You should add the UISearchBar to the main view. Use IB to do this, or use

[self.view addSubview:searchBar];

if you are creating them programmatically. Either way, also make sure the UITableView is positioned some 40px lower.

mvds