title: My core locator won't work
body: <p>For the past 2 hours I've been trying figure out why the core locator won't find my devices location.<br><br> The facts are:<br>
  - It doesn't work on the emulator or my iPhone<br>
  - I can accept the application to access my location in app but after that nothing happens<br>
  - I'm using Swift and using Xcode 6.4<br>
  - I've input both NSLocationWhenInUseUsageDescription and NSLocationAlwaysUsageDescription into my info.plist<br>      </p>
  
  <pre><code>import UIKit
  import MapKit
  import CoreLocation
  
  class satelliteViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate {
  
      @IBOutlet weak var mapView: MKMapView!
      @IBOutlet weak var mapTypeTitle: UIButton!
  
      var locationManager: CLLocationManager?
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          locationManager = CLLocationManager()
          locationManager!.delegate = self
          locationManager!.desiredAccuracy = kCLLocationAccuracyBest
          locationManager!.requestWhenInUseAuthorization()
          locationManager!.startUpdatingLocation() 
      }
  
      @IBAction func changeMapType(sender: AnyObject) {
          // Unimportant     
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
      }
  }
  </code></pre>