0
我已經通過了所有我能找到的文檔,但我無法弄清楚如何解決這個問題。當我點擊搜索文本框時,燈箱亮起,但並未覆蓋整個屏幕(看起來像是關閉了〜64dp)。這裏有幾個截圖。UISearchDisplayController燈箱不包括tableview
我有我的搜索玩意兒tableViewController
之前的內部:
後:
有沒有人有經驗,解決這個問題?
這裏是我如何設置的一切行動:
self.searchBar = [[UISearchBar alloc] init];
self.searchBar.barTintColor = [UIColor whiteColor];
self.searchBar.delegate = self;
self.searchController = [[UISearchDisplayController alloc] initWithSearchBar:self.searchBar contentsController:self];
self.searchController.delegate = self;
self.searchController.searchResultsDelegate = self;
self.searchController.displaysSearchBarInNavigationBar = YES;