swift - Scroll View & UIGestureRecogniser Conflict -


i have uiimageview subview in scrollview.

i want able pan up/down on uiimage adjust color of uiimage.

also want able pan/zoom around image(that's why implemented scrollview).

i have adjustcolor ibaction uibutton adds uipangesturerecogniser target , executes function below:

  func panned(gesture: uigesturerecognizer){   ...   } 

my problem adjustcolor button ignored scrollview's scroll behaviour.

if delete scrollview , add uiimage, adjustcolor button activates color adjustment function , gestures work perfectly.

on other hand, if have scrollview , image subviewimage, adjustcolor button has no functionality.

any appreciated. thank you.

make sure connect uigesturerecognizer iboutlet scrollview.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -