title: Location permission check and authorization
body: <p>I want my program to display the users location on the map.  It was working at first then randomly stopped so i added the code below to try to fix it but I'm having problems. Thanks in advance!    </p>
  
  <pre><code>    override func viewDidLoad()
      {
          super.viewDidLoad()
          self.locationManager.delegate = self
          self.locationManager.desiredAccuracy = kCLLocationAccuracyBest
          if CLLocationManager.locationServicesEnabled()
          {
  
              let status: CLAuthorizationStatus = CLLocationManager.authorizationStatus()
              if status == CLAuthorizationStatus.NotDetermined
              {
                  locationManager.requestAlwaysAuthorization()
              }
              } else {
  
                  print("locationServices disenabled")
              }
              locationManager.startUpdatingLocation()
              self.locationManager.startUpdatingLocation()
              self.mapView.showsUserLocation = true
              mapView.delegate = self
              centerMapOnLocation(initialLocation)
              addBoundry()
      }
  </code></pre>