当我从RGB设置UIcolor时,某些颜色不匹配.
teamcolor = [UIcolor colorWithRed:255.0/255.0 green:250.0/255.0 blue:229.0/255.0 Alpha:1]marker.icon = [GMSMarker markerImageWithcolor:teamcolor];//when i set marker to this colour it's show different i want
当我设置黑色或白色时,它会显示加里.
如何知道哪种颜色支持GMSMarker?
解决方法 它支持您想要的任何颜色,但结果您将得不到标记的确切颜色,因为标记是使用一些半透明滤镜和蒙版绘制的.绘制自己的UIImage以获得精确的颜色并将其设置为marker.icon. 总结以上是内存溢出为你收集整理的ios – 如何知道哪种颜色支持GMSMarker?全部内容,希望文章能够帮你解决ios – 如何知道哪种颜色支持GMSMarker?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)