Skip to content

Instantly share code, notes, and snippets.

View RRCummins's full-sized avatar

Ryan Cummins RRCummins

View GitHub Profile
@RRCummins
RRCummins / gist:a3a723b65b9455dcb813
Created February 2, 2016 14:52
Find Coffee Now with MKLocalSearchRequest()
import UIKit
import MapKit
import CoreLocation
class MapClass: UIViewController, CLLocationManagerDelegate, UISearchBarDelegate {
var searchController:UISearchController!
var annotation:MKAnnotation!
var localSearchRequest:MKLocalSearchRequest!
var localSearch:MKLocalSearch!