首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Xcode3.2为iphone开发处理objective c/c++事件

使用Xcode3.2为iphone开发处理objective c/c++事件
EN

Stack Overflow用户
提问于 2011-04-20 16:21:46
回答 1查看 308关注 0票数 0

我是一名iPhone应用程序的开发人员,但我被困在某个点上,有人能告诉我如何在iPhone开发中处理Xcode3.2中的C或C++事件吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-04-20 17:52:52

如果您想要处理UIView或任何从UIResponder派生的子类的事件...只需隐藏接触点并处理那里的事件...

代码语言:javascript
复制
-(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];
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5727450

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档