如何删除搜索显示控制器显示的叠加层或在iOS7中将其偏移。该错误仅适用于iOS7。 Apple开发者论坛不是很有帮助。
答案 0 :(得分:0)
试试这个,它对我有用:
- (void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller
{
[self.navigationController setNavigationBarHidden: YES animated: YES];
//...
}
-(void)searchDisplayControllerWillEndSearch:(UISearchDisplayController *)controller
{
[self.navigationController setNavigationBarHidden: NO animated: YES];
//...
}