“无效模式 'kCFRunLoopCommonModes' ..."是什么意思? [英] What does "invalid mode 'kCFRunLoopCommonModes' ..."mean?
问题描述
环境:版本 11.0 beta 3 (11M362v)
Environment: Version 11.0 beta 3 (11M362v)
全文如下:
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug.
This message will only appear once per execution.
Hello World
此消息仅在我单击连接到操作的 UISwitch 按钮时出现;在这里,打印Hello World".
显然,动作的行为不受影响.
作为比较,我在工具栏中创建了一个行为正常的 UIBarButtonItem.所以开关按钮有点可疑.
This message only appears when I click on a UISwitch button that is connected to an action; here, printing "Hello World".
Apparently the behavior of the action isn't affected.
As a comparison, I've created a UIBarButtonItem in the toolbar which behaves normally. So there's something fishy about the switch button.
问题:为什么会出现这种情况,这意味着什么?补救措施?
Question: why would this appear and what does it mean? Remedy?
推荐答案
我认为这是一个警告,Apple 应该自行修复它.即使在来自 WWDC19 的 this 示例项目中,也存在这个问题.表格的单元格中有一个 UISwitch.当我点击它时,会出现上述警告.
I think it's a warning that Apple should fix it itself. Even in this sample project which is from WWDC19 this problem exists. There is a UISwitch in a cell of a table. When I tap it, the mentioned warning is raised.
所以,在我看来,这是苹果应该处理的错误.
So, in my view, it is a bug that Apple should deal with.
这篇关于“无效模式 'kCFRunLoopCommonModes' ..."是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!