Added a uisearch bar and uisearchbardisplaycontoller programatically (NO XIB) and the search bar sorta displays in the table header but is non functional.
if setActive:YES, setActive:NO on the display controller it appears just fine and is functional
Any ideas why this might be happening?
THanks in advance
searchBar = [[UISearchBar alloc] init];
[self setSearchBarDisplayController:[[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self]];
[[self searchBarDisplayController] setDelegate:self];
[[self searchBarDisplayController] setSearchResultsDataSource:self];
summaryTableView = [[[UITableView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 416.0) style:UITableViewStylePlain] autorelease];
[summaryTableView setDataSource:self];
[summaryTableView setDelegate:self];
[summaryTableView setBackgroundColor:[UIColor clearColor]];
[summaryTableView setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
[summaryTableView setRowHeight:[PayCell height]];
[summaryTableView setTableHeaderView:searchBar];
[self.view addSubview:summaryTableView];
[searchBarDisplayController setActive:YES];
[searchBarDisplayController setActive:NO];