Dav*_*ido 4 iphone objective-c ipad touchesbegan touches
出于某种原因,我的touchesBegan方法似乎没有正确响应.如果我用两根手指触摸屏幕,然后将其抬起并再次放下,触摸正确调用.如果我用一根手指触摸屏幕,然后添加第二根手指,touchesBegan就不会被调用.我需要检查一些标志吗?以下示例说明了我的问题:
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"touch");
}
Run Code Online (Sandbox Code Playgroud)
有什么想法发生了什么?如果重要的话,我正在使用iOS 4.2进行iPad测试.