如何使注释字幕从标题菜单中消失? [英] how to make the annotation subtitle disappear from title menu?

查看:44
本文介绍了如何使注释字幕从标题菜单中消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用中,正在为注释图钉添加字幕,但不想与图钉一起显示.我只是将其用于编码目的.我怎么藏起来?

解决方案

如果注释类的 subtitle 属性设置为非空白值,则它将显示在标注中.

如果您需要存储带注释的数据但不显示在标注中,请为其创建一个单独的属性(未命名为 title subtitle ,或 coordinate ).

字幕保留为空白,或者仅在注释类中不实现该属性(这是可选的).

In my app am adding subtitle to annotation pin but don't want to show with pin. I am just using it for coding purpose. How can I hide?

解决方案

If the subtitle property of your annotation class is set to a non-blank value, it will display in the callout.

If you need to store data with the annotation but not display it in the callout, create a separate property for it (that's not named title, subtitle, or coordinate).

Leave subtitle blank or just don't implement the property in your annotation class (it's optional).

这篇关于如何使注释字幕从标题菜单中消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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