jjzjj

GMSPlacePickerViewController

全部标签

iOS Swift 3 - 有没有人设法使用自定义 UI 实现 Google Place API 的新 GMSPlacePickerViewController?

我目前正在重新构建一个应用程序,该应用程序使用来自GooglePlaceAPI的PlacePicker来获取用户随后可以添加到我的map上的数据。过去,我使用的是GMSPlacePicker,自从Google发布其PlaceAPI2.3以来,该工具现已弃用。因此,我目前正在尝试通过GMSPlacePickerViewController迁移到他们使用API的新方式,根据Google的说法,可以使用自定义UI实现。来自谷歌的documentation:Astheplacepickerisanormalviewcontrolleritcanbedisplayedanywayyouwant.

ios - 在我们之前尚未在 GMSPlacePickerViewController 实例上设置委托(delegate)

我已经使用IOS和GoogleMapsApi玩了几天,两天前API升级到2.3版,不推荐使用GMSPlacePicker。Deprecationnotice:GMSPlacePickerNotice:Theimplementationoftheplacepickerhaschanged.Asofversion2.3oftheGooglePlacesAPIforiOS,theGMSPlacePickerclassisdeprecated,replacedbyGMSPlacePickerViewController.UseoftheGMSPlacePickerclasswillonlybe