cllocation and mkreversegeocoder

前端 未结 1 1243
感动是毒
感动是毒 2021-02-04 21:49

i\'m try to retreiving city name with cllocation and mkreversegeocoder. in my viewdidload method i istance cllocationmanager:

self.locManager = [[CLLocationManag         


        
相关标签:
1条回答
  • 2021-02-04 22:00

    Don't create the reverse geocoder as a local variable.

    Look at the MKReverseGeocoder example in the CurrentAddress sample app provided by Apple. See MapViewController.h and MapViewController.m.

    Follow the same pattern in your code.

    0 讨论(0)
提交回复
热议问题