i want to display google place picker for restaurants using GMSPlacePickerViewController, below are the code i am trying from developers.google.com

一个人想着一个人 提交于 2019-12-11 09:07:14

问题


i want to achieve above screenshot output in one of my app below is the sample code i am looking at in developers website.

https://developers.google.com/places/ios-api/placepicker

GMSPlacePickerConfig *config = [[GMSPlacePickerConfig alloc] initWithViewport:nil];
GMSPlacePickerViewController *placePicker = [[GMSPlacePickerViewController alloc] initWithConfig:config];
placePicker.delegate = self;
[self presentViewController:placePicker animated:YES completion:nil];

GMSPlacePickerViewController is not visible to class it seems.

below attached is the error i am getting while putting this code to my class.

Let me know if anyone of you have worked on this.

Thanks in advance.

来源:https://stackoverflow.com/questions/49856173/i-want-to-display-google-place-picker-for-restaurants-using-gmsplacepickerviewco

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!