How to go to second view controller after click on disclosure indicator button

后端 未结 1 1166
时光说笑
时光说笑 2020-12-22 09:58

I would like to remove existing annotation from mapview. Scenerio is to click on existing annotation callout part (disclosureindicator button) and it would lead user to anot

相关标签:
1条回答
  • 2020-12-22 10:29

    The MKMapView class has two methods you need to add/remove annotations:

    addAnnotation: id <MKAnnotation>
    removeAnnotation: id <MKAnnotation>
    

    You'd create a class that implements the protocol MKAnnotation. Here's an example in another SO question: MKAnnotation, simple example

    0 讨论(0)
提交回复
热议问题