iPad 开发:圆形和线性仪表
我创建了一个桌面(winforms)和基于网络(asp.net)的仪表板应用程序,该应用程序使用 Dundas 圆形和线性仪表。
例如
我需要使用 xcode ui 和 Objective c (或可以导入到的东西)重新创建这些仪表基于视图的项目)
是否有任何框架可以创建这些类型的仪表?我查看了核心图,但它没有这种类型的功能。
I have created a desktop (winforms) and web based (asp.net) dashboard application that uses the Dundas circular and linear gauges.
e.g.
I need to recreate these gauges using the xcode ui and objective c (or something that can be imported into a view based project)
Are there any frameworks available that can create these types of gauges? I had a look at core plot, but it doesn't have this type of functionality.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
它们并不像看起来那么困难。您只需要图形资源,然后区分静态图形资源和可动画图形资源。
使用 Core 动画可以相当轻松地完成动画。假设您拥有第一个小工具(尽管 Quartz2D 的性能会更高 - 但使用简单的 UIView 来制作它将是一个良好的开始)。
第一个小工具只有可以动画的针(或根据给定值旋转)。图像的其余部分可以是一个简单的 UIImageView。
执行以下操作:
这将使针旋转。
对于第二号规格的两根针也是如此。对于水平条,执行相同的操作,但使用 FRAME 设置相对于 min_value 和 max_value 的条的大小。
They are not as difficult as they seem. You simply need the graphic assets then distinguish the static vs animatable graphics assets.
The animation can be done fairly easily using Core animation. So let's say you have the first gadget (though Quartz2D will be much more performant - but it will be a good start to make it using simple UIViews).
The first gadget has just the needle that animates (or rotates based on a given value). rest of the image can be a simple UIImageView.
Do something like:
This will rotate the needle.
Similarly for the two needles in second gauge. For the horizontal bars, do the same but using FRAME to set the size of bars relative to min_value and max_value.
据我所知,没有什么可以做到“开箱即用”。
您可能会发现此问题和MeterView 项目的帮助。
There is nothing that I am aware that will do this "out-of-the-box".
You may find this question and MeterView project on GitHub of help.
有一些免费的控件,例如您可以在cocoacontrols.com 中搜索。
https://www.cocoacontrols.com/search?utf8= %E2%9C%93&q=仪表
There are some free controls, e.g. you can search in cocoacontrols.com.
https://www.cocoacontrols.com/search?utf8=%E2%9C%93&q=gauge
据我所知,我认为自由市场上不存在如此高级的仪表板小部件,特定于 BI。
但你绝对可以使用 iOS (Cocoa) 核心库 Quartz 2D 来制作它们。
http://en.wikipedia.org/wiki/Quartz_2D
Such a high level dashboard widgets, specific to BI as I presume do not exist on free market as far as I know.
But you definitely can make them with iOS (Cocoa) core library Quartz 2D.
http://en.wikipedia.org/wiki/Quartz_2D