Created
February 21, 2016 14:36
-
-
Save TheDarkCode/86e23bfb9c9acce60a01 to your computer and use it in GitHub Desktop.
Sample class for adding annotations to MKMapView.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SampleAnnotation.swift | |
// Sample class for adding annotations to MKMapView. | |
// | |
// Created by Mark Hamilton on 2/21/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation | |
import MapKit | |
class SampleAnnotation: NSObject, MKAnnotation { | |
var coordinate = CLLocationCoordinate2D() | |
init(coordinate: CLLocationCoordinate2D) { | |
self.coordinate = coordinate | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment