gpt4 book ai didi

ios - 如何在未显示的 Controller 中更新 WKInterfaceLabel 使用基于页面的 segue

转载 作者:行者123 更新时间:2023-11-28 06:53:41 27 4
gpt4 key购买 nike

在我的 watchos 2 应用程序中,当我更新数据时,仅在显示的 Controller 中更新。如果我在 willActivate() 中更新标签 - 文本会延迟更改。如何在未显示的 Controller 中更新 WKInterfaceLabel 使用基于页面的? WKInterfaceController.reloadRootControllersWithNames 方法不合适

最佳答案

我已经有一段时间没有专门使用 WatchKit 了。

但根据我的理解,willActivate() 方法在您的生命周期中可能为时已晚。您是否尝试过查看更改早期方法(例如 init() 方法)中的文本?

我快速浏览了 WatchKit Programming Guide .

关于ios - 如何在未显示的 Controller 中更新 WKInterfaceLabel 使用基于页面的 segue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34276758/

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