CLLocationManager.location is nil

后端 未结 2 1324
旧时难觅i
旧时难觅i 2021-01-02 08:09

this is my locationManager init method:

func initLocationManager() {
        seenError = false
        locationFixAchieved = false
        locationManager =          


        
2条回答
  •  失恋的感觉
    2021-01-02 08:43

    As of iOS 8 requestAlwaysAuthorization is ignored if you do not provide a string for NSLocationAlwaysUsageDescription in your Info.plist.

    Link to documentation

提交回复
热议问题