UISearchBar in UITableViewController?
I want to add a SearchBar to my TableView . I just dragged the UISearchBar to the header of an UITableView in IB, and it scrolled with my UITableView . I changed to use UITableViewController now, and when I drag an UISearchBar in the header of the UITableView which is provided with the UITableViewController , it doesn't show up at all. Is there a trick? Kind regards You can do it programmatically UISearchBar *tempSearchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 0)]; self.searchBar = tempSearchBar; [tempSearchBar release]; self.searchBar.delegate