Is it okay to programmatically create UITouch and UIEvent objects to emulate touch events?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-05-22T13:21:37Z Indexed on 2010/05/22 13:30 UTC
Read the original article Hit count: 506

Filed under:
|

I want to simulate some touches on my UI, without using private API.

So one simple way to do it is to simply call those -touchesBegan:withEvent:, -touchesMoved:withEvent:, -touchesEnded:WithEvent: and -touchesCancelled:withEvent: methods inside my custom controls. For that, I would have to create UITouch and UIEvent dummy objects with appropriate data inside. Is this fine with them? Or would they reject my app?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about apple