自定义MKPinAnnotationView颜色 [英] Custom MKPinAnnotationView Colours

查看:124
本文介绍了自定义MKPinAnnotationView颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为MKPinAnnotationView颜色定义自定义颜色,而不是默认的红色,绿色或紫色?医生说不...

Is it possible to define custom colours for the MKPinAnnotationView colour rather than the default red, green or purple? Docs say no...

谢谢

推荐答案

    如果要使用颜色与标准注释不同的注释,则应创建自己的图像.
    如果Apple的文档说不,您应该信任他们-即使有未记录的(使用私有api)做某事的方式,也有可能导致您的应用被应用商店拒绝.

    If you want to use annotation with color different from standard ones you should create your own image.
    If Apple's docs say no, you should trust them - even if there's undocumented (using private api) way to do something it will likely cause your app to be rejected from app store.

这篇关于自定义MKPinAnnotationView颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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