Error Domain=kCLErrorDomain Code=2 “The operation couldn’t be completed. (kCLErrorDomain error 2.)”

后端 未结 2 2003
情歌与酒
情歌与酒 2020-12-19 09:51
import UIKit
import CoreLocation

class ViewController: UIViewController, CLLocationManagerDelegate {

    @IBOutlet var latLabel: UILabel!
    @IBOutlet var longLab         


        
2条回答
  •  眼角桃花
    2020-12-19 10:14

    Alternatively, you can pass lat long to this google api and get all fields related to address depending on the "types" in the json

提交回复
热议问题