2
下面是代码:如何在iOS应用中启用多个触摸?
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
if ([touches count] == 1) {
// code
} else {
// code
}
}
当我模拟与仿真Option键双轻叩,代码总是选择if语句,因为如果有收到我的只有1点触摸的第一部分。
为什么我没有收到两个触摸?