Creating a UITouch object

ぐ巨炮叔叔 提交于 2019-12-01 09:09:30

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/1943521/creating-a-uitouch-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!