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
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
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.