Adding an accessory view button to the MKMapView call out annotation?

后端 未结 3 2243
既然无缘
既然无缘 2021-02-14 15:37

I\'ve recently come across this website and I\'ve been trying to add to my call out view a button (from a image).

The code on the websites example works just fine, but w

3条回答
  •  抹茶落季
    2021-02-14 16:15

    Sorry to answer my own question but this was solved by setting the delegate of the MKMapView to the ViewController. Phew, took me a while to figure that out and it's so simple!!

提交回复
热议问题