Watchkit iwatch 中的奇怪加载问题
Strange Loading Issues in Watchkit iwatch
在 iwatch 应用程序中,我的通知被调用,我得到了字符串中的更新数据。在我验证的 NSLogs 中,但我的 iWatch 标签仅显示旧数据,似乎 UI 无法重新加载,标签中的文本未设置。
有谁知道这个问题以及如何解决这个问题,因为更新的数据即将到来但标签没有显示更新的数据。
这是我在我的方法中获得更新数据的几次,但 UI 没有得到更新。
请帮忙。
提前致谢。
documentation 状态:
An interface controller can make changes to its interface only during initialization and when the interface is active. Once the didDeactivate method is called, any attempts to change the value of related interface objects are ignored until the interface controller’s willActivate method is called again.
尝试使用setText:
方法在willActivate
中设置标题。
在 iwatch 应用程序中,我的通知被调用,我得到了字符串中的更新数据。在我验证的 NSLogs 中,但我的 iWatch 标签仅显示旧数据,似乎 UI 无法重新加载,标签中的文本未设置。 有谁知道这个问题以及如何解决这个问题,因为更新的数据即将到来但标签没有显示更新的数据。
这是我在我的方法中获得更新数据的几次,但 UI 没有得到更新。 请帮忙。 提前致谢。
documentation 状态:
An interface controller can make changes to its interface only during initialization and when the interface is active. Once the didDeactivate method is called, any attempts to change the value of related interface objects are ignored until the interface controller’s willActivate method is called again.
尝试使用setText:
方法在willActivate
中设置标题。