【发布时间】:2015-10-16 15:11:49
【问题描述】:
当我尝试在注释中添加按钮时遇到问题。
在我提出这个问题之前,我已经在以下页面上搜索了答案: How to add a button to the MKPointAnnotation? , Adding a button to MKPointAnnotation? 等等 但一切都帮不了我。
这是试图做的事情:
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)
不知道我尝试做的是否行不通。 我是第一次尝试 swift。
希望有人可以帮助我:)
提前致谢!
【问题讨论】: