回调函数调用不了
回调函数调用不了
回调函数调用不了
2017-05-17
我的也是出不来,
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])
{
let location:CLLocation = locations[locations.count - 1] as CLLocation
if (location.horizontalAccuracy > 0) {
print(location.coordinate.latitude)
print(location.coordinate.longitude)
locationManager.stopUpdatingLocation()
}
}
现在代理方法换成这个了,但是没执行进来,而且权限询问也不跳出来,关于privcy 我也设置了
举报