CLGeocoder "Lost connection to geod" #error# when use geocodeAddressString:completionHandler

?

?

I got this warning when I tried to get destination using CLGeoCoder and the warning is coming out from this method

-(void)geocodeAddressString:(NSString*)addressStringcompletionHandler:(CLGeocodeCompletionHandler)completionHandler;?

when will this issue come out?I will tell you the my experience:

In my app,when I set the CLGeocoder as a @property,or set like this,

CLGeocoder*_geocoder;

when I set app in the background for a moment or a long time, Xcode will log this warning ,and the method will be not available: im getting this issue when am only getting the position on the map.

Lostconnectiontogeod

so I try to quit to set CLGeocoder as a @property,nor set like this,

CLGeocoder*_geocoder

ever time when I use it ,I will init CLGeocoder,like this:

? ? CLGeocoder*gc=[[[CLGeocoderalloc]init]autorelease];

? ? [gcreverseGeocodeLocation:locationObjectcompletionHandler:^(NSArray*placemark,NSError*error){

? ? CLPlacemark*pm=[placemarkobjectAtIndex:0];

? ? NSDictionary*address=pm.addressDictionary;

? ? // do something with the address, see keys in the remark below

? ? }];

时间: 2024-10-10 04:25:36

CLGeocoder "Lost connection to geod" #error# when use geocodeAddressString:completionHandler的相关文章

启动监听报错:TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection closed Linux Error: 29: Illegal seek

启动监听程序报错: 说明:在rhel5.8上安装完成oracle11g数据库后,使用netca创建完监听,启动监听时报错.还未使用dbca创建实例. [[email protected] ~]$ lsnrctl start LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-APR-2015 08:33:53 Copyright (c) 1991, 2009, Oracle. All rights reserved. Starting

【SQLYOG】SSH ERROR:UNABLE TO OPEN CONNECTION:GETHOSTBYNAME:UNKNOWN ERROR牵引出来的一系列问题

出现这个问题很蹊跷,SQLyog管理过一二十台的mysql服务器或者vps,连接一直没有问题,各种服务商的都没问题,也包括阿里云的.可昨天偏偏一台阿里云的服务器本地通过SQLyog去连接它的时候报这样的错:SSH Error:Unable to open connection:gethostbyname:unknown error,谷歌.百度.好搜了几个小时都无果(查完无此相关问题). 刚开始以为是防火墙出了问题,结果关闭阿里云防火墙测试,同样无法通过,百思不得其解,另外3台阿里云的ECS服务器

启动项目报错:502 Server dropped connection The following error occurred while trying to access http://localhost:8080/TestDemo:

之前的项目一直是好的,可以启动,但最近启动出了问题,访问不了,于是找到原因发现是启用了访问国外网站的加速器, 更改了浏览器的代理模式,如下: 解决方法: 打开浏览器,进入到浏览器的网络设置中,将局域网设置中代理去掉即可.以 火狐为例,截图如下: 设置完成后,apache项目就可以启动了

TNS-12547 Linux Error: 104: Connection reset by pe (转载)

TNS-12547 Linux Error: 104: Connection reset by peer 解决过程参考:http://blog.chinaunix.net/u/7121/showart_403812.html [[email protected] log]$ lsnrctl startLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-JUN-2009 09:53:26 Copyright (c) 1991, 2005

(20002, b'DB-Lib error message 20002, severity 9:\nAdaptive Server connection failed (127.0.0.1:3306)\n')

使用python 3.7 pymssql 连接本地mysql 5.6 报错 解决:参考 https://www.cnblogs.com/springbrotherhpu/p/11503139.html https://blog.csdn.net/llx1026/article/details/79579572 1.在https://sourceforge.net/projects/freetdswindows/ 下载 windows 的freetds 2. 解压,cmd 进入 F:\FreeTD

MySQL Error Codes MYSQL的错误代码

OS error code 1: Operation not permitted OS error code 2: No such file or directory OS error code 3: No such process OS error code 4: Interrupted system call OS error code 5: Input/output error OS error code 6: No such device or address OS error code

socket error code

Error Codes The ERRNO values below are set when API calls fail. Use xn_getlasterror to retrieve the error code after an API call fails. Functionxn_geterror_string) can be used to retrieve the string name of a particular error code. All errno values a

502 Server dropped connection

在本地电脑上开启了,全局VPN代理后,出现 502 报错. 502 Server dropped connection The following error occurred while trying to access http://localhost/invo/: 502 Server dropped connection

Connection类之ConnectionSendClose.cs(NetworkComms 2.3.1源码了解和学习)

networkComms.net2.3.1开源版本,基于gpl V3协议.因为不能公开3.x版本的源码,所以基于此版本进行学习.3.X版本进行了诸多改进和Bug修复,使用方法上两者相差不大. using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Threading; using DPSBase; using System.Net.Sockets; name