I am trying to build an app where two buttons need to be pressed simultaneously.
if (self->button1.touchInside && self->button2.touchInside) {
NSLog(@"Two buttons pressed");
}
else if (!self->button1.touchInside | !self->button2.touchInside){
NSLog(@"One button pressed");
}
Both buttons are attached to the View Controller using the 'Touch Down' gesture option. When I press both buttons at the same time (with one press) the console window prints:
One button pressed
Two buttons pressed
This interferes with how my application works. I only want the console to print
Two buttons pressed
Thanks