[英]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.)". 我正在使用MKReverseGeocoder,但是我一直在获取reverseGeocoder:didFailWithError:“该操作无法完成。(MKErrorDomain错误4。)”。 I am passing the geocoder the coordinates of the MKUserLocation annotation.
我正在向地址解析器传递MKUserLocation注释的坐标。 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.
就我而言,当Apple Map找不到查询的任何结果时,有时它只会抛出此“ MKErrorDomain = 4”错误。 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. 很难找到答案,MapKit需要更好的错误处理系统。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.