title: UIGestureRecognizer doesnt work and makes app slow
body: <p>In map view, I want to make that if user touches anywhere in the map, app stops updating location..but seems like nothing happens and it takes around 10-15 seconds for actions to work in the app ( makes app really slow and laggy ) I have been using this code:</p>
  
  <pre><code> @IBOutlet var Map: MKMapView!
  
      let locationManager = CLLocationManager()
       override func viewDidLoad() {
          super.viewDidLoad()
          StopUpdate.hidden = true
          Longi.hidden = true
          Lati.hidden = true
          locationManager.delegate = self
          locationManager.desiredAccuracy = kCLLocationAccuracyBest
          locationManager.requestWhenInUseAuthorization()
          locationManager.requestLocation()
          locationManager.startUpdatingLocation()
          locationManager.stopUpdatingLocation()
      self.view.addGestureRecognizer(UIGestureRecognizer(target: self, action: "tapClose"))
  }
  
  func tapClose(gesture: UITapGestureRecognizer){
      locationManager.stopUpdatingLocation()
      StopUpdate.hidden = true
      UpdateLocation.hidden = false
  }
  </code></pre>
  
  <p>Because of the GestureRecognizer my app is slow and laggy.Any solution to this?</p>