Having a problem when i try to add a button in a annotation.
Before i've asked this question i've searched for answers on the following pages: How to add a button to the MKPointAnnotation? , Adding a button to MKPointAnnotation? etc. But all couldn't help me.
This what is tried to do:
var annotation1 = MKPointAnnotation()
annotation1.setCoordinate(locationKamer1)
annotation1.title = "Title1"
annotation1.subtitle = "Subtitle1"
// here i want to add a button which has a segue to another page.
mapView.addAnnotation(annotation1)
Don't know if what i try to do isn't working. I'm experimenting with swift for the first time.
Hope someone can help me :)
Thanks in advance!