У меня есть следующий код:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
NSUInteger touchCount = 0;
// Enumerates through all touch objects
for (UITouch *touchb in touches){
touchCount++;
}
// When multiple touches, report the number of touches.
if (touchCount > 1) {
lblStatustouch.text = [NSString stringWithFormat:@"Tracking %d touches", touchCount];
} else {
lblStatustouch.text = [NSString stringWithFormat:@"Tracking 1 touch", touchCount];
}
Когда я запускаю его, он никогда не обнаруживает более одного касания. Существуют ли какие-либо настройки, которые могут помешать моему приложению выполнять несколько касаний? Или я что-то здесь упускаю?