创建 UITouch 对象
在我的 iPhone 应用程序中,我重写了视图中的 touchesBegan:withEvent
方法,我想要做的是对 NSSet 中找到的 UITouch 对象进行一些调整并将其发送到另一个视图。我无法在任何地方找到如何创建 UITouch 对象。
In my iPhone app I'm overriding the touchesBegan:withEvent
method in my view and what I want to do is make some tweaks to the UITouch object found in the NSSet and send it to another view. I couldn't find anywhere how to create a UITouch object.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我让它工作的方法是对 UITouch 进行分类并创建一个 init 方法。这个博客应该解释如何做到这一点:
http://cocoawithlove .com/2008/10/synthesizing-touch-event-on-iphone.html
The way I got it to work was by categorizing the UITouch and create an init method. This blog should explain how to do it:
http://cocoawithlove.com/2008/10/synthesizing-touch-event-on-iphone.html