【问题标题】:How to update CPInformationTemplate when the data is updated更新数据时如何更新 CPInformationTemplate
【发布时间】:2022-01-04 06:40:20
【问题描述】:

我正在使用 CarPlay EV 充电应用程序。

我想在CPInformationTemplate中显示充电进度。

我担心的是,每当更新充电状态时,我都想更新CPInformationTemplate中显示的信息。

我还没有找到任何解决方案。 我只看到只有 CPListTemplate 正在为 EV Charging 类别应用程序更新。

我是否使用了正确的模板来显示充电详细信息,还是我遗漏了什么。

这是我的演示项目截图,在CPInformationTemplate中显示充电信息

谢谢!

【问题讨论】:

    标签: ios swift carplay


    【解决方案1】:

    根据文档,您可以更新CPInformationTemplateitems 属性“...以更新模板显示的项目”(请参阅​​here)。

    【讨论】:

    • 感谢您的回复,成功了!
    猜你喜欢
    • 2017-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-16
    • 2012-03-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多