我希望能够在没有用户交互的情况下调用触摸事件。
这是否可能?
你可以手动调用touches begin和touches end。
我认为可能有更好的解决方案来实现你想要做的事情,这似乎是一种非常不寻常的做法。
看一下 UIResponder 的 touchesBegan:withEvent: 和 touchesEnded:withEvent:
UIResponder 的 touchesBegan:withEvent:
touchesEnded:withEvent: