如何像Swift IOS中的以下图像一样,以突出显示值进行量规视图?

发布于 2025-02-09 05:55:39 字数 600 浏览 1 评论 0 原文

我已经看了量表套件之类的图书馆,但它们无法解决我的问题。是否还有其他图书馆像图像中的图表视图一样?如果没有,那我该如何解决呢?

我检查了这些文章,图书馆

(它不给标签)

库) - (GaugeView,AbgaugeViewKit,wmgaugeviewKit,wmgaugeview,wmgaugeview,wmgaugeview,for ios for IOS等)

-我被认为是在实际规格之间。

I have looked at the libraries like gauge kit but they does not solve my problem. Are there any other libraries for making gauge view as in the image? If not, then how can I go around about it?

I Checked these articles and the Libraries

https://medium.com/ajay-bhanushali/create-gaugeview-speedometer-in-swift-571ff97d1a68 (It does not give a label)

Libraries - (GaugeView, ABGaugeViewKit, WMGaugeView, AnyChart for iOS etc) - sectionsGapValue is different in my case

So I am stuck out in between the actual gauge.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蝶…霜飞 2025-02-16 05:55:39

您应该创建自定义的UICONTROL(使其可以使其具有ibdSigning)。并在本教程中绘制它

override func draw(_ rect: CGRect) { }

应该为您提供帮助。

详细的代码沿着圆形路径绘制文本,在此帖子中:沿iOS的Swift沿圆形路径绘制文本

You should create your custom UIControl (make it IBDesignable). And draw it in

override func draw(_ rect: CGRect) { }

This tutorial should help you.

Detailed code to draw the text along a circular path, in this SO post : Draw text along circular path in Swift for iOS

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文