4

每当我要求HealthKit权限时,库都会在屏幕上显示一个模态视图,带有UISwitches. 整个应用程序都是以编程方式编写的。

每当它出现时,我都会收到以下警告:

Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x146e252d0>

由于我不控制 Apple 的健康权限视图代码,我想知道如何阻止这种情况发生?这是一个错误吗?

4

3 回答 3

3

Make sure that your code bringing up Health Access isn't interfering with a transition already happening. I was having the same problem along with the Health Access modal view freezing. While debugging I manually set the HealthKit permissions in the Health app, and this warning/error disappeared.

Since the same code is executing on my part and being called from viewDidLoad (I also tried viewDidAppear, viewWillAppear, and from a button press where there was no transitions called); I think this might be some type of HealthKit bug. If it isn't freezing the Health Access screen for you like it was for me, it seems like it is ignorable for the time being and maybe Apple will fix it.

于 2014-11-18T01:13:55.030 回答
0

syslog 中的该消息可能是无害的,但如果您担心它,您应该提交一个radar

于 2014-11-14T15:52:36.993 回答
0

我有同样的问题,但我正在快速通过按钮操作调用 Apple 的健康授权请求,所以在我看来这是 Apple 的健康工具包的问题。

于 2015-08-04T12:46:42.140 回答