链接到此版本的 iOS 时不再支持 UISearchDisplayController

Siv*_*rla 7 google-maps-sdk-ios ios13

无法使用 Googleplaces SDK,无法在我的项目中使用“UISearchDisplayController”。因此在我的项目中进行了搜索,该项目显示在 GooglePlaces 中

在此输入图像描述

我没有使用“GMSAutocompleteTableDataSource”,我正在使用“GMSAutocompleteResultsViewController”来获取地点。

小智 18

当在 Storyboard 中向 UIViewController 添加 searchBar 时,将添加 UISearchBarDisplayController。只需点击它添加按“删除” 在此输入图像描述


har*_*yas 10

我刚刚删除了故事板视图控制器中使用的 searchDisplayController。

搜索 searchDisplayController 并删除它,如果创建了它就是插座。

在此输入图像描述


Siv*_*rla 0

我的故事板中有一个搜索显示控制器,当我像这样搜索时它不会拉起。因此在每个故事板中使用“searchDisplayController”进行搜索。参考这篇文章