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.
Asked
Active
Viewed 118 times
1
-
Found a solution to this problem in my other question: http://stackoverflow.com/questions/6993924/delegate-callback-from-other-nsthread – Misha Aug 18 '11 at 10:27
1 Answers
3
I believe MKReverseGeocoder requires a run loop to run correctly. If you're using NSThread you'll have to run the run loop manually.

jtbandes
- 115,675
- 35
- 233
- 266
-
-
It will probably be as simple as calling `[[NSRunLoop mainRunLoop] run]` after starting your geocoder. You might also need to use `-runUntilDate:`. [This question](http://stackoverflow.com/questions/149646/best-way-to-make-nsrunloop-wait-for-a-flag-to-be-set) also has some good information. – jtbandes Aug 09 '11 at 19:01