我是一名iPhone应用程序的开发人员,但我被困在某个点上,有人能告诉我如何在iPhone开发中处理Xcode3.2中的C或C++事件吗?
发布于 2011-04-20 17:52:52
如果您想要处理UIView或任何从UIResponder派生的子类的事件...只需隐藏接触点并处理那里的事件...
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesBegan:touches withEvent:event];
}
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesEnded withEvent:event];
}
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesMoved withEvent:event];
}https://stackoverflow.com/questions/5727450
复制相似问题