I am trying to use the mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated method to limit the region of my mapview but whenever I make a call to my mapview’s region ([self.userMapView setRegion:regionLimit] ), it gives me a EXC_BAD_ACCESS error.
This error is thrown no matter what property I try to call from my mapView. I have my mapview set to the mapview with a proper outlet, and I was even able to call the set region in the viewDidLoad message.
How can I keep these properties from throwing the bad access error? If no can answer, can anyone direct me to a resource explaining how to debug something like this? Thanks.
See here for his to debug EXC_BAD_ACCESS errors and common mistakes that cause them. In your case, I’ll bet your property is long dead and recycled, or was never initialized in the first place.