创建一个UITouch对象 [英] Creating a UITouch object

查看:86
本文介绍了创建一个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.

推荐答案

我使用它的方法是对UITouch进行分类并创建一个init方法.该博客应该说明如何做到这一点:

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

这篇关于创建一个UITouch对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆