为了账号安全,请及时绑定邮箱和手机立即绑定

回调函数调用不了

回调函数调用不了

正在回答

2 回答

我的也是出不来,

 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 我也设置了


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Swift Weather APP
  • 参与学习       35566    人
  • 解答问题       241    个

本课程将带领大家使用Swift语言开发一个完整的天气 iOS APP

进入课程

回调函数调用不了

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信