title: iOS Swift - Reload location function with NSTimer for app background doesn't work
body: <p>I've got a problem with location services. I can't set up a function that updates my location coordinates in the background by a NSTimer. Here is my code from appDelegate:</p>
  
  <pre><code>var locationManager = CLLocationManager()
  
  func applicationDidEnterBackground(application: UIApplication) {
  
      self.locationManager.delegate = self
      self.locationManager.desiredAccuracy = kCLLocationAccuracyBest
  
      self.theTimer = NSTimer(fireDate: NSDate(), interval: 40, target: self, selector: "handleTimer", userInfo: nil, repeats: true)
      NSRunLoop.currentRunLoop().addTimer(self.theTimer, forMode: NSDefaultRunLoopMode)
  
  }
  
      func locationManager(manager: CLLocationManager!, didUpdateLocations locations: [AnyObject]!) {
      var locValue:CLLocationCoordinate2D = manager.location.coordinate
      println("dinBack = \(locValue.latitude) \(locValue.longitude)")
      self.locationManager.stopUpdatingLocation()
  }
  
  func handleTimer(){
  
      println("started")
      self.locationManager.startUpdatingLocation()
  
  }
  </code></pre>
  
  <p>PS. - Of course that i've imported corelocation.
      - When I get back into the app, the console prints what should have printed in the background.</p>