Search code examples
iphoneobjective-cxcodemkreversegeocoder

MKReverseGeocoder inside of NSThread


I have object that implements MKReverseGeocoder. I'm running it inside of separate thread and it is delegate of itself. However its 'didFailWithError' and 'didFindPlacemark' methods are not being called. If i get it outside of thread, than everything works as expected.


Solution

  • I believe MKReverseGeocoder requires a run loop to run correctly. If you're using NSThread you'll have to run the run loop manually.