Objective c Can';无法获取iOS中的位置(GEOErrorDomain代码=-204)

Objective c Can';无法获取iOS中的位置(GEOErrorDomain代码=-204),objective-c,ios,Objective C,Ios,我正在尝试使用MKMapView显示地图并放置pin。这是我的密码 MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } }; region.center.latitude = 37.47 ; region.center.longitude = 122.26; region.span.longitudeDelta = 0.01f; region.span.latitudeDelta = 0.01f; [mapView setRegion

我正在尝试使用
MKMapView
显示地图并放置pin。这是我的密码

MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } }; 
region.center.latitude = 37.47 ;
region.center.longitude = 122.26;
region.span.longitudeDelta = 0.01f;
region.span.latitudeDelta = 0.01f;
[mapView setRegion:region animated:YES];
但我得到下面的错误

<GEOTileSource: 0x8e4c160>: Error downloading tiles Server Error: Error Domain=GEOErrorDomain Code=-204 "The operation couldn’t be completed. (GEOErrorDomain error -204.)" UserInfo=0x88990f0 
{UnderlyingErrors=(
"Error Domain=GEOErrorDomain Code=-204 \"The operation couldn\U2019t be completed. (GEOErrorDomain error -204.)\" UserInfo=0x885b570 {IncompleteResponse=Asked for 2 tiles but only got 0 back}",
"Error Domain=GEOErrorDomain Code=-204 \"The operation couldn\U2019t be completed. (GEOErrorDomain error -204.)\" UserInfo=0x8890a50 {IncompleteResponse=Asked for 6 tiles but only got 0 back}"
)}
:下载磁贴时出错服务器错误:Error Domain=georrdomain code=-204“操作无法完成。(georrdomain Error-204。)”UserInfo=0x88990f0
{基础错误=(
“Error Domain=GEOErrorDomain Code=-204\”操作无法\U2019t完成。(GEOErrorDomain错误-204。)\“UserInfo=0x885b570{IncompletResponse=请求2个磁贴,但仅返回0}”,
“Error Domain=GEOErrorDomain Code=-204\”操作无法\U2019t完成。(GEOErrorDomain错误-204。)\“UserInfo=0x8890a50{IncompletResponse=请求6个磁贴,但仅返回0}”
)}

我没有找到任何关于
georrdomain code=-204
是什么的参考。请帮帮我。

我升级到了XCode DP4,现在一切似乎都好了

这是测试版的错误。我会偶尔得到,因为他们是如何加载位置瓷砖。假设它在beta 4上运行正常,我不会太担心它。他们仍在解决一些位置/地图问题,因此当测试期结束时,如果发现更多问题,我不会感到惊讶。

我也有同样的问题,在我的情况下,只有在地图完成加载所有分幅之前关闭UIViewController时才会发生。 修复方法是在关闭视图控制器时将mapView(MKMapView)委托设置为nil

mapView.delegate = nil;

这里也有同样的错误。这似乎只发生在模拟器中,它在设备中工作。。进程研究:)同样的代码在iOS5模拟器上运行良好。我试着用iOS6SDK用XCode45-DP2运行它,结果出现了这个错误。对我来说,这种情况发生在设备上&而不是模拟器上