HillsApp does not have sandbox access for something and IS NOT appropriately entitled
Why is this coming up? I am trying to use a location locater code on MKMapView, the user location is coming up but the region is not being zoomed into.
mapView.isHidden = false
mapView.mapType = MKMapType.standard
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
let location = locations[0]
let span:MKCoordinateSpan = MKCoordinateSpanMake(0.01, 0.01)
let myLocation:CLLocationCoordinate2D = CLLocationCoordinate2DMake(location.coordinate.latitude, location.coordinate.longitude)
let region:MKCoordinateRegion = MKCoordinateRegionMake(myLocation, span)
mapView.setRegion(region, animated:true)
self.mapView.showsUserLocation = true