gpt4 book ai didi

ios - 在 Apple Watch 中实现图表【条形图和折线图】

转载 作者:行者123 更新时间:2023-11-28 21:47:09 28 4
gpt4 key购买 nike

我正在研究 POC(针对现有应用程序)以在 Apple Watch 中实现图表(业务/企业数据分析)。我见过video来自 Saleforce 工具,它们包括用于在 Apple Watch 中显示图形和图表的选项。

我浏览了 Apple Watch 的文档,但找不到用于在 UI 中以编程方式绘制(就像我们在通常的 iOS 应用程序中使用的)图形/图表的文档。

所以我去查了Telerik示例,看起来他们正在使用图表图像(他们必须先在 iPhone 中运行然后截取屏幕截图)并使用共享组将其传递给 Apple Watch。

有没有一种方法可以让我们在 Apple Watch 界面(在 watch 应用程序中)动态绘制而无需打开和传递来自 iPhone 应用程序的图像?

下面来自销售人员的示例:

enter image description here

enter image description here

请指明继续实现此实现的方向。非常感谢对此的任何帮助

最佳答案

我猜没有。我从项目中读取它:https://github.com/hmaidasani/RadialChartImageGenerator

The way Apple WatchKit SDK allows animations or visualizations is to use a sequence of static images (WatchKit Design Guidlines). In fact, Apple's own WatchKit sample app called Lister does animations of this radial progress chart using 360 different static images of the chart. The reason for this is that drawing pixels or shapes would require a lot of computation and drain the battery of the watch. So, good luck creating hundreds of images by yourself.

关于ios - 在 Apple Watch 中实现图表【条形图和折线图】,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29688346/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com