Can't get Location in iOS (GEOErrorDomain Code=-204)

前端 未结 3 1314
醉梦人生
醉梦人生 2021-01-05 15:30

I am trying to display a map and drop a pin using MKMapView. This is my code

MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } }; 
region.         


        
相关标签:
3条回答
  • 2021-01-05 15:51

    I upgraded to XCode DP4 and all seems to be ok now.

    0 讨论(0)
  • 2021-01-05 15:58

    I had the same issue, in my case it only happen when closing the UIViewController before the map completed loading all tiles. The fix was to set the mapView (MKMapView) delegate to nil when closing the view controller.

    mapView.delegate = nil;
    
    0 讨论(0)
  • 2021-01-05 16:05

    That was an error with the beta version. I would get that occasionally because of how they are loading the location tiles. Assuming it is working ok on beta 4, I wouldn't worry too much about. There are a few location/map issues they are still working out, so I wouldn't be surprised to find more by the time the beta period is done.

    0 讨论(0)
提交回复
热议问题