本文介绍了Watchkit没有调用willActivate方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Watchkit的所有测试版中,我能够无缝地运行我的手表应用程序,但是在过去一周(8.2)的最近版本中,我的willActivate方法几乎没有被调用过。发生了什么是awakeWithContext被调用,手表停止与旋转器永远旋转。这个问题发生在任何人身上吗?

Throughout all the betas of Watchkit I was able to run my watch app seamlessly, but with the recent release this past week (8.2) my willActivate method is hardly ever called. What happens is awakeWithContext gets called and the watch stalls with the spinner spinning forever. Has this issue happened to anyone?

推荐答案

我发现通过输入Command-L来锁定和解锁设备(模拟器)将导致willActivate方法成为调用。我希望你不必在真正的Apple Watch上这样做。

I've found that locking and unlocking the device (simulator) by typing Command-L will cause the willActivate method to be called. I hope you don't have to do that on a real Apple Watch.

这篇关于Watchkit没有调用willActivate方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 06:46