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
Post a Comment