0
我正在创建注释,我希望通过单击注释切换到其他视图。Swift注释更改视图
并传递给不同的视图一个字符串。
这里是我的注解:
代码:
var annot = MKPointAnnotation()
annot.title = tab[i]["title"].string
annot.subtitle = tab[i]["description"].string
annot.coordinate = CLLocationCoordinate2D(latitude: tab[i]["latitude"].doubleValue, longitude: tab[i]["longitude"].doubleValue)
self.mapView.addAnnotation(annot)
并通过单击标题或者我想切换到不同的视图左侧添加一个信息按钮。
如果您有任何链接/例子非常感谢你
在iOS 9中,这会容易得多。 – DogCoffee