Greg
Greg

Reputation: 276

Ocean (blue screen) displayed on map for request for userLocation

Hi all: this remains a mystery to me. My app loads a blue screen (the ocean) after I push my "Find Me" button, which contains the following:

-(IBAction)findMe
{
  self.mapView.showsUserLocation = YES;
  [mapView setCenterCoordinate:mapView.userLocation.coordinate animated:YES];
}

My understanding of the remedy of this error is that you may want mapView.showsUserLocation = YES; in the ViewWillAppear section, but I am open to feedback. My question is, how can I stop loading the blue screen of death by clicking my button??? :)

Upvotes: 0

Views: 1325

Answers (1)

Joshua Nozzi
Joshua Nozzi

Reputation: 61228

Ah, I steered you wrong (see what I did there? maps? steer? eh???). See the answer to this question: Centering map against user's location - the end of the question was also updated to include a link to more useful info for responding to location updates. I think this should "get you there" (he did it again!).

Upvotes: 3

Related Questions