创建 UITouch 对象

发布于 2024-08-16 03:34:04 字数 145 浏览 8 评论 0原文

在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

堇色安年 2024-08-23 03:34:04

我让它工作的方法是对 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文