Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够在没有用户交互的情况下调用触摸事件。
这可能吗?
您可以手动调用 touches begin 和 touches end。
我认为无论您尝试做什么,都可能有更好的解决方案,这似乎是一件非常非常规的事情。
看看UIResponder's touchesBegan:withEvent:和touchesEnded:withEvent:
UIResponder's touchesBegan:withEvent:
touchesEnded:withEvent: