iphone - Disabling simultaneous rightBarButton / tapGestureRecognizer touch -


i have viewcontroller makes navigationbar , statusbar disappear / reappear when user taps screen (much photos app). i'm noticing when push rightbarbutton "done" on navigationbar , tap screen simultaneously, makes bars disappear while viewcontroller transitioning (thus not displaying bars on viewcontroller gets pushed).

i've tried disabling rightbarbutton when uitapgesturerecognizer gets triggered, , tried disabling uitapgesturerecognizer when rightbarbutton gets pushed, doesn't make difference, happens when pushed simultaneously.

does know solution prevent happening?

i think easiest way setexclusivetouch: navbar view (and therefore rightbarbutton). in viewdidload:

for (uiview *v in self.navigationcontroller.navigationbar.subviews) {     [v setexclusivetouch:yes]; } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -