Чтобы использовать UIViewController, необходимо выполнить событие вроде:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch;
CGPoint pos;
for( touch in touches )
{
//pos = [ touch locationInView:self ]; // Only work on UIView
pos = [touch locationInView:self.view ]; // Work on UIViewController
//NSLog(@"Touch: %f, %f",pos.x,pos.y);
// Send X, Y, tapcount
_faceOff->toucheBegan( pos.x, pos.y, [ [ touches anyObject ] tapCount ]);
}
}
Надеюсь, это поможет.