 		searchBar.delegate = self
 		
 		// gesture recognizer for adding by tap
-		mapView.addGestureRecognizer(UILongPressGestureRecognizer(target: self, action: "addLocation:"))
+		mapView.addGestureRecognizer(UILongPressGestureRecognizer(target: self,
+            action: #selector(LocationPickerViewController.addLocation(_:))))
 		
 		// search
 		navigationItem.titleView = searchBar

			button.layer.cornerRadius = 16
			let bundle = NSBundle(forClass: LocationPickerViewController.self)
			button.setImage(UIImage(named: "geolocation", inBundle: bundle, compatibleWithTraitCollection: nil), forState: .Normal)
			button.addTarget(self, action: "currentLocationPressed", forControlEvents: .TouchUpInside)
			view.addSubview(button)
			locationButton = button
		}

			showItemsForSearchResult(nil)
			
			searchTimer = NSTimer.scheduledTimerWithTimeInterval(0.2,
				target: self, selector: #selector(LocationPickerViewController.searchFromTimer(_:)),
				userInfo: [LocationPickerViewController.SearchTermKey: searchTerm],
				repeats: false)
		}
