UIScrollView: vista en miniatura de UIView

En una UIViewController, Tengo un UIScrollView que ocupa la mitad de la pantalla. Este UIScrollView contiene una colección de UIView.

En este UIViewController, I registered a UISwipeGestureRecognizer which works fine. However, I don't want the UIScrollView to be able to recognize the swipe, is there a way to do this? For example, if I swipe within any location in this UIViewController pero no dentro del UIScrollView which is embedded within it, it should recognize the swipe.

preguntado el 12 de febrero de 14 a las 07:02

2 Respuestas

Subclase UIScrollview say "MyScrollView" and override touchesBegin,Moved and Ended methods and leave them empty.

utilizan el MyScrollView as the class for your scrollview.

Respondido 12 Feb 14, 07:02

Try using this line if it works :

[self.view setExclusiveTouch:YES];

Respondido 12 Feb 14, 10:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.