我有其他 UIKeyCommand 正常工作,但是箭头键(使用 UIKeyInput[Direction]Arrow 常量)选择器没有被调用。任何建议将不胜感激。
这是我用来创建箭头键命令的代码:
UIKeyCommand(input: UIKeyInputRightArrow, modifierFlags: [], action: #selector(moveRight))
选择moveRight
器没有被调用,也没有任何箭头键选择器。除箭头键外,其他 UIKeyCommands 都按预期工作。