1

您将如何设置模拟 UITouches 的回归测试?

我正在开发一个 iOS 游戏,并希望对核心功能进行一些回归测试。对于固定的假触摸列表,我需要自动触发对 touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 等的调用,然后我可以自动评估测试结果。

4

1 回答 1

1

没有公共构造函数,但人们找到了一种方法,请参阅

http://www.cocoawithlove.com/2008/10/synthesizing-touch-event-on-iphone.html

于 2012-12-12T10:52:19.360 回答