Nel caso in cui qualcuno sia interessato, ciò che ho fatto invece di eseguire l'override è stato disabilitare l'UIPanGestureRecognizer e aggiungere un'altra istanza di UIPanGestureRecognizer che è mappata al mio gestore personalizzato.
Edit per twerdster:
ho fatto come questo
//disables the built-in pan gesture
for (UIGestureRecognizer *gesture in scrollView.gestureRecognizers){
if ([gesture isKindOfClass:[UIPanGestureRecognizer class]]){
gesture.enabled = NO;
}
}
//add your own
UIPanGestureRecognizer *myPan = [[UIPanGestureRecognizer alloc] init...];
//customize myPan here
[scrollView addGestureRecognizer:myPan];
[myPan release];
Come hai fatto esattamente? – twerdster
Come hai disattivato l'impostazione predefinita e come hai specificato il nuovo comportamento in modo che si adattasse al vecchio comportamento e aggiungesse il tuo gestore? – twerdster
@twerdster vedere il post aggiornato. – Altealice