作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我的 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/
我在 StackOverflow 和其他地方看到了很多与此类似的问题,但没有一个直接解决我的问题。我正在 THREE.js 中使用凸包生成器生成 n 边多面体。我想将方形纹理映射到每个多面体的每个面上
我是一名优秀的程序员,十分优秀!