
在您的代码中,您正在使用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文档。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)