3

MKPointAnnotation のカスタム「バッジ」を迅速に作成しようとしましたが、MKPointAnnotation には画像のようなプロパティがないため失敗しました

 var information = MKPointAnnotation()
    information.coordinate = location 
    information.title = "Test Title!"
    information.subtitle = "Subtitle"
    information.image = UIImage(named: "dot.png") //this is the line whats wrong
    Map.addAnnotation(information)

誰もがそのための迅速な解決策を見つけましたか?

4

1 に答える 1