更新时间:2022-01-13 23:12:54
这是我的解决方案,直到 Apple 以正确的行为更新 SpriteKit,或者有人真正想出如何按照我们想要的方式使用它.
Here is my solution until Apple updates SpriteKit with correct behaviour, or someone acctually figures out how to use it like we want.
https://gist.github.com/bobmoff/7110052
将文件添加到您的项目中并将其导入您的前缀标题中.现在触摸应该按预期方式工作.
Add the file to your project and import it in your Prefix header. Now touches should work the way intended.