How to get the user's current location by code in iphone app?

前端 未结 4 1196
北荒
北荒 2021-01-07 10:17

I want to get the user\'s current location from my iPhone app. I want to show the user\'s current location like country name, latitude, longitude information in my app. And

4条回答
  •  情书的邮戳
    2021-01-07 10:52

    this should do most of it..

    http://www.highoncoding.com/Articles/804_Introduction_to_MapKit_Framework_for_iPhone_Development.aspx

    to get the information on the location you need to use MKReverseGeocoder

    https://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKReverseGeocoder_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40008323

提交回复
热议问题