How to change touch position when passing a UITouch object?
- (void)tou开发者_运维知识库chesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
if(touchDelegate_)
{
// before passing the event, I want to scale touch position by 2, how can i do it?
// that is, if touch position is (5, 5), I want touchDelegate_ see it as (10, 10)
[touchDelegate_ touchesBegan:touches withEvent:event];
}
}
It's not possible. UITouch
is a readonly object. There is no public API that allows you to manipulate it at the moment.
精彩评论