iPhone - Get City name from Latitude and Longtiude

前端 未结 10 935
难免孤独
难免孤独 2020-12-05 06:04

I want get my Current City name in my iPhone App.

I\'m currently getting the latitude and longitude using CLLocationManager and than i am passing my coordinates into

10条回答
  •  天命终不由人
    2020-12-05 06:05

    I found this code and it worked for me: https://gist.github.com/flyworld/4222448.

    Just change placemark.ISOcountryCode to placemark.locality.

提交回复
热议问题