UIScrollView: vista en miniatura de UIView
Frecuentes
Visto 131 equipos
0
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.
2 Respuestas
1
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
0
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 ios iphone objective-c uiview uiscrollview or haz tu propia pregunta.