I have the following code:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
NSUInteger touchCount = 0;
for (UITouch *touchb in touches){
touchCount++;
}
if (touchCount > 1) {
lblStatustouch.text = [NSString stringWithFormat:@"Tracking %d touches", touchCount];
} else {
lblStatustouch.text = [NSString stringWithFormat:@"Tracking 1 touch", touchCount];
}
When I run it, it never detects more than one touch. Are there any settings that may prevent my application from making multiple touches? Or am I missing something here?
source
share