multi-touches on ios

    技术2024-12-01  49

    overload method

     

    - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {     [super touchesBegan:touches withEvent:event];     UITouch *touch = [touches anyObject];         NSArray *allTouches = [touches allObjects];         gestureStartPoint = [touch locationInView: self.view];     NSLog(@"cover touchesBegan count=%u", [allTouches count]); }

     

    OPTION key +Ctrl for testing in simulator.

     

    最新回复(0)