{Swift}让别针链接?

{Swift}让别针链接?,swift,Swift,我找不到如何链接我的let=pin 请帮帮我 我的第一个代码: @IBOutlet weak var Point1S: MKMapView! override func viewDidLoad() { super.viewDidLoad() let location = CLLocationCoordinate2DMake(43.429837, 5.434837) Point1S.setRegion(MKCoordinateRegionMakeWithDistance

我找不到如何链接我的let=pin 请帮帮我

我的第一个代码:

@IBOutlet weak var Point1S: MKMapView!

override func viewDidLoad() {
    super.viewDidLoad()

    let location = CLLocationCoordinate2DMake(43.429837, 5.434837)

   Point1S.setRegion(MKCoordinateRegionMakeWithDistance(location, 500, 500), animated: true)

    let pin = here
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}
第二个代码:

import MapKit

class MKPinAnnotationView : NSObject , MKAnnotation {
    var title: String?
    var subtitle: String?
    var coordinate: CLLocationCoordinate2D

    init(title : String , subtitle : String , coordinate : CLLocationCoordinate2D) {

        self.title = title
        self.subtitle = subtitle
        self.coordinate = coordinate
    }

}
我不知道如何在let pin=第二个代码中加入我的第一个代码


谢谢

您是否在询问如何实例化MKPinAnnotationView类?
let pin = MKPinAnnotationView(title: "title", subtitle: "subtitle", coordinate: CLLocationCoordinate2DMake(27.33, 85.03))