Je veux savoir comment j'arrêter mon sublass o UIScrollView ne fonctionne pas correctement:Touches de UIScrollView remplacent
- (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?
}
}
Je veux seulement à agir quand il a 2 touches tout ce que je veux ne rien faire. Ou encore mieux, si vous pouvez me dire comment passer la touche dans l'instruction else à un UIView:
UntitledViewController.otherView
Si vous pouvez me dire comment faire cela, alors je serais si heureux.