简体   繁体   English

该操作无法完成。 (MKErrorDomain错误4)

[英]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.

相关问题 该操作无法完成。 不允许操作 - The operation couldn’t be completed. Operation not permitted “这项行动无法完成。 (可可错误512.)“ - “The operation couldn’t be completed. (Cocoa error 512.)” 该操作无法完成。 (可可错误1560.) - The operation couldn’t be completed. (Cocoa error 1560.) didFailWithError:错误域= kCLErrorDomain代码= 0“无法完成操作。 (kCLErrorDomain错误0。)“ - didFailWithError: Error Domain=kCLErrorDomain Code=0 “The operation couldn’t be completed. (kCLErrorDomain error 0.)” 该操作无法完成。 (com.facebook.sdk.login错误301。) - The operation couldn’t be completed. (com.facebook.sdk.login error 301.) Alamofire 错误:操作无法完成。 软件导致连接中止 - Alamofire Error: Operation couldn't be completed. Software caused connection abort Xcode 4共享IPA“操作无法完成。 没有相应的文件和目录” - Xcode 4 share IPA “The operation couldn’t be completed. No such file or directory” 无法保存到数据存储:无法完成操作。 (可可错误133020.) - Failed to save to data store: The operation couldn’t be completed. (Cocoa error 133020.) CLLocationManager: allowDeferredLocationUpdates - 不断获取操作无法完成。 (kCLErrorDomain 错误 11。) - CLLocationManager: allowDeferredLocationUpdates - keep getting The operation couldn’t be completed. (kCLErrorDomain error 11.) phonegap代码:2消息:操作无法完成。 (kCLErrorDomain错误0。) - phonegap code: 2 message: The operation couldn’t be completed. (kCLErrorDomain error 0.)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM