MFSideMenu icon indicating copy to clipboard operation
MFSideMenu copied to clipboard

UITapGestureRecognizer conflict with other views

Open yangjunsss opened this issue 10 years ago • 0 comments

Such as Toolbar Item tap event and others.

Fix,change to :

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
 if([gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]]){
        if (self.menuState != MFSideMenuStateClosed) {
            return YES;
        }else{
            return NO; // fix TapGesture conflict with other views
        }
    }
....
}

yangjunsss avatar Jul 08 '15 06:07 yangjunsss