Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Swift 中,当用户单击“i”时,我可以添加地图注释并使用放置的引脚的 segue 显示详细信息,但是我无法使用 segue 显示多个放置的引脚的详细信息;与 ViewTable 不同,这里不涉及索引。我怎么做?
这能给你一些提示吗?
func mapView(mapView: MKMapView!, annotationView view: MKAnnotationView!, calloutAccessoryControlTapped control: UIControl!) { //get the annotation ,maybe you need cast the type // let anno = view.annotation //performSegue here }