gpt4 book ai didi

ios - 如何处理 iOS 4.3 中的 MKReverseGeocoder/PBHTTPStatusCode=503 错误?

转载 作者:可可西里 更新时间:2023-11-01 03:38:24 28 4
gpt4 key购买 nike

从 iOS 4.3 (GM Seed 10M2518) 开始,我在使用 MKReverseGeocoder 时遇到崩溃。 reverseGeocoder:didFailWithError: 被调用时经常出现这样的错误:

Error Domain=NSURLErrorDomain Code=-1011 “操作无法完成。(NSURLErrorDomain 错误 -1011。)” UserInfo=0x339900 {PBHTTPStatusCode=503}

应用程序往往会在这些时刻崩溃。在以前的 iOS 版本中,情况并非如此。

知道发生了什么吗?

最佳答案

确保您不会在失败时过早地释放反向地理编码器:

[_reverseGeocoder release] 更改为 [_reverseGeocode autorelease] in -(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error 为我解决了这个问题。

关于ios - 如何处理 iOS 4.3 中的 MKReverseGeocoder/PBHTTPStatusCode=503 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5232822/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com