The operation couldn’t be completed. (MKErrorDomain error 4)

I am using the MKReverseGeocoder but I keep getting reverseGeocoder:didFailWithError: "The operation couldn't be completed. (MKErrorDomain error 4.)". I am passing the geocoder the coordinates of the MKUserLocation annotation. What does this error mean & how can I avoid it?


My answer to a similar question:

I've met and solved this issue recently. In my case, when Apple Map cannot find any result for a query, it sometimes will just throw this this "MKErrorDomain = 4" error. So I ended up just treating this as "result not found".

It was painstaking to find this out, MapKit needs a better Error handling system.

链接地址: http://www.djcxy.com/p/3016.html

上一篇: 在Flex中显示SVG 4

下一篇: 操作无法完成。 (MKErrorDomain错误4)