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 react self.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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -