ios - Button stays selected after UIScrollView swipe event -
i trying fix problem ran while implementing uiscrollview
. when button being pressed , scrolled simultaneously, button becomes "stuck" (it pretty remains in selected state , can't interacted anymore.
problem: http://makeagif.com/zjtj5p
what tried far:
- disabling , reenabling
uiscrollview
inside@ibaction
function,self.scrollview.userinteractionenabled = false
, user not scroll, when button being tapped (i guess it's wrong approach , since buttons connected "touch inside" event , @ stage it's them reactself.scrollview.userinteractionenabled = false
- disabling buttons when swipe gesture recognized. used
scrollviewdidscroll
method, way buttons can't pressed @ all.
i believe need create method "touch drag exit" of uibuttons, , disable uiscrollview
when "touch drag exit" recognized. best approach?
Comments
Post a Comment