uigesturerecognizer - UITapGestureRecognizer waiting for second tap, buttons slow -
i have uitapgesturerecognizer waiting doubletap zoom out scrollview original level. there situation add couple of buttons on top of scrollview. these buttons react slow (sluggishly) because once tap button, app waiting second tap. if not come, button pressed.
anyone have idea on how buttons respond quickly? can temporarily disable gesturerecogniser while buttons up?
cheers nick
what filtering touches on buttons so:
- (bool)gesturerecognizer:(uigesturerecognizer *)gesturerecognizer shouldreceivetouch:(uitouch *)touch { // don't recognize taps in buttons return ((! [self.button1 pointinside:[touch locationinview:self.button1] withevent:nil]) && (! [self.button2 pointinside:[touch locationinview:self.button2] withevent:nil])); }
?
Comments
Post a Comment