没有调用CLLocationManager委托方法(已集成Google地图)

没有调用CLLocationManager委托方法(已集成Google地图),第1张

没有调用CLLocationManager委托方法(已集成Google地图)

在您的代码中,您正在使用Swift 3,并且在Swift 3中,

CLLocationManagerDelegate
方法的签名是这样更改的。

func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {}//func locationManager(_ manager: CLLocationManager, didUpdateTo newLocation: CLLocation,        from oldLocation: CLLocation) is deprecated with below onefunc locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {}func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {}

有关

CLLocationManagerDelegate
更多详细信息,请参阅Apple文档。



欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5662479.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存