I want to know how I would stop my sublass o UIScrollView is not working properly:
- (void) touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)view {
if ([touches count] == 2) {
[super touchesShouldBegin:[touches anyObject] withEvent:event inContentView:view];
}
else {
//How do I stop it completely from using one touch?
}
}
I only want it to act when it has 2 touches everything else I want to do nothing. Or even better, if you can tell me how to pass the touches in the else statement to a UIView:
UntitledViewController.otherView
If you can tell me how to do this then I would be so happy.