【发布时间】:2017-12-17 11:04:11
【问题描述】:
我使用这段代码添加 UISearchController:
self.searchController.obscuresBackgroundDuringPresentation = YES;
self.searchController.hidesNavigationBarDuringPresentation = YES;
self.searchController.searchBar.searchBarStyle = UISearchBarStyleDefault;
self.navigationItem.searchController = self.searchController;
self.navigationItem.hidesSearchBarWhenScrolling = NO;
我看到 有时,当 searchBar 向上时,视图之间的过渡会出现在下面。我尝试了很多事情,但无法弄清楚为什么会发生这种情况。 知道为什么会这样吗?
谢谢
【问题讨论】:
标签: ios uinavigationcontroller ios11 uisearchcontroller