gpt4 book ai didi

ios - 无法让谷歌地图初始化 Swift

转载 作者:搜寻专家 更新时间:2023-11-01 06:48:53 24 4
gpt4 key购买 nike

var camera: GMSCameraPosition = GMSCameraPosition.cameraWithLatitude(-33.86, longitude: 151.20, zoom: 6); 
var gmaps: GMSMapView = GMSMapView.mapWithFrame(CGRectZero, camera:camera);

gmaps.myLocationEnabled = true

gmaps.delegate = self

self.view=gmaps

我得到了这个错误:

2014-08-15 17:22:43.749 MapTest[1579:60b] -[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance 0x17dbf550

2014-08-15 17:22:43.756 MapTest[1579:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance 0x17dbf550'

最佳答案

在项目而不是特定目标上设置标志会导致此错误。查看 GoogleMapsSDKDemos Project Settings 中的标志,在目标而不是项目上设置了标志

关于ios - 无法让谷歌地图初始化 Swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25326039/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com