-4
我没有找到如何链接到我的让利=销 请帮助我{Swift}让引脚连接?
我的第一个代码:
@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
}
}
我不知道怎么把我的在让销的第一代码=第二码
感谢
你问如何实例化你的'MKPinAnnotationView'类? –