I added this code:
- (void)searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller {
for (UIView *v in [[[controller.searchResultsTableView superview] superview] subviews]) {
if (v.frame.origin.y == 64) {
[v setHidden:YES];
}
}
}
and it works but it removes some other functionality, like cancel search by clicking on tableview....but it's better than nothing...