How to get Location user with CLLocationManager in swift?

前端 未结 7 2068
鱼传尺愫
鱼传尺愫 2020-11-29 04:49

I have this code on my view controller but this not working:

  import UIKit
  import CoreLocation

  class ViewController: UIViewController, CLLocationManag         


        
相关标签:
7条回答
  • 2020-11-29 05:41

    It should be written as func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {

    0 讨论(0)
提交回复
热议问题