How to get current location using CLLocationManager in iOS

后端 未结 4 1374
一个人的身影
一个人的身影 2020-12-09 13:03

I can already find the current location using latitude and longitude, but I would also like to be able to find the current location given a zip code.

Here is what I

4条回答
  •  长情又很酷
    2020-12-09 13:52

    if location permissions not asking when you first launch then you cant get your current location .

    iOS8 has got us major API changes with the LocationsServices

    Assuming [CLLocationManager locationServicesEnabled] return YES,

    With the First Launch of the iOS App [both iOS7 and iOS8] - locationMangers(CLLocationManager)

提交回复
热议问题