jjzjj

GMSAutocomplete

全部标签

ios - GMSAutocompleteViewController 想要在搜索点击时获取搜索栏中的文本

您好,我使用过GMSAutocompleteViewController全屏控件。https://developers.google.com/places/ios-api/autocomplete#add_an_autocomplete_ui_control我无法通过searchbar事件和textfieldshouldreturn事件尝试获取键盘搜索点击事件,但它没有被调用。当在谷歌中找不到任何位置时,我想获取我输入的文本。 最佳答案 来自GooglePlacesAPI文档..https://developers.google.c

ios - Google Places iOS - 无法加载搜索结果

我在我的iOS项目中使用来自GooglePlacesAPI的GMSAutoCompleteViewController。今天突然我的GMSAutoCompleteViewController一直给我错误“无法加载搜索结果”。我已经使用新的APIkey重新生成了我的APIkey。我已经尝试了一切,但仍然有些不起作用。我正在使用Objective-C。谁能帮忙?代码GMSAutocompleteViewController*acController=[[GMSAutocompleteViewControlleralloc]init];acController.delegate=self;[

ios - Google Places API,GMSAutocomplete 搜索仅适用于城市,国家 iOS Swift

我已经像这样设置了GoogleGMSAutocomplete:privatefuncsetupAutocompleteWithTextFieldController(){letkTextFieldTop:CGFloat=searchField.frame.origin.yletkTextFieldHeight:CGFloat=44.0letkContentRectTop=kTextFieldTop+kTextFieldHeightcontentRect=CGRectMake(0,kContentRectTop,self.view.bounds.size.width,self.view.

ios - 谷歌地图自动完成改变颜色

我正在搜索GMSAutocompleteViewController的更改颜色这是我得到的:我希望文本字段为白色,带有白色取消按钮。 最佳答案 swift3@IBActionfuncsearchCityBtn(_sender:Any){letautocompleteController=GMSAutocompleteViewController()autocompleteController.delegate=selfUINavigationBar.appearance().barTintColor=UIColor(red:44.0

ios - 以相同的方式在 GMSAutocomplete 中使用文本字段而不是搜索栏

我正在使用googlePlaceAutocompleteAPI,我需要添加具有相同功能的UITextField而不是UISearchBar。这是我从https://developers.google.com/places/ios-api/autocomplete获得的UISearchBar的工作代码.如果有人帮我从任何搜索关键字中获取地址数组,我会自己添加文本字段和表格View。就像从字符串(关键字)到数组(预测的位置)。importUIKitimportGoogleMapsclassViewController:UIViewController{varresultsViewContr

ios - 如何使用 gmsAutocomplete View Controller 在 uitextfield 上应用自定义搜索以进行地点搜索。?

HIalliamworkingonGMSAutocompleteViewControllerinmyapp.ihaveauitextfieldinmyviewcontrollerwhenitapptextfieldforsearchaplaceusinggoogleapi,anewviewisopenwhichispoweredbygoogle.Lookatmycodeplease.-(void)textFieldDidBeginEditing:(UITextField*)textField{tappedTextField=textField;GMSAutocompleteViewCo