Mar*_*Thé 6 mkreversegeocoder ios
从iOS 4.3(GM Seed 10M2518)开始,我在使用时遇到了崩溃MKReverseGeocoder.reverseGeocoder:didFailWithError:经常被这样的错误调用:
Error Domain=NSURLErrorDomain Code=-1011 "The operation couldn’t be completed. (NSURLErrorDomain error -1011.)" UserInfo=0x339900 {PBHTTPStatusCode=503}
该应用程序往往会在这些时刻崩溃.在以前的iOS版本中并非如此.
发生了什么事?
确保在发生故障时不要过早释放反向地理编码器:
更改[_reverseGeocoder release]到[_reverseGeocode autorelease]在 -(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error解决了这个问题对我来说.
| 归档时间: |
|
| 查看次数: |
4717 次 |
| 最近记录: |