点击披露指示按钮后如何进入第二视图控制器 [英] How to go to second view controller after click on disclosure indicator button

查看:114
本文介绍了点击披露指示按钮后如何进入第二视图控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从mapview中删除现有注释。 Scenerio是单击现有的注释标注部分(disclosureindicator按钮),它会将用户引导到另一个视图控制器并显示一个按钮,您可以删除所选的注释。实际上,我正在努力创建完全相同的谷歌地图应用程序,这是我现在正在努力的部分。任何帮助,将不胜感激!

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 another viewcontroller and shows a button you could remove the selected annotation. Actually, I am working on to create exactly same google map application, that is part I am struggling now. Any help would be appreciated!

推荐答案

MKMapView类有两种方法需要添加/删除注释:

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

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

您将创建一个实现MKAnnotation协议的类。以下是另一个SO问题的示例: MKAnnotation,简单示例

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

这篇关于点击披露指示按钮后如何进入第二视图控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆