mapViewに長押しでピンを追加する方法
storyboardにmapviewを追加するのは省略
func longPressed(sender: UILongPressGestureRecognizer) {
//長押しした地図上の座標
let tappedLocation = sender.locationInView(mapView)
let tappedPoint = mapView.convertPoint(tappedLocation, toCoordinateFromView: mapView)
//ピンの生成
let pin = MKPointAnnotation()
//ピンを置く場所を指定
pin.coordinate = tappedPoint
//ピンのタイトル
pin.title = "タイトル"
//ピンのサブタイトル
pin.subtitle = "2016/7/1"
//ピンをMapViewの上に追加
self.mapView.addAnnotation(pin)
}