uigesturerecognizer - Unable to detect swipe position from bottom to top in iOS -
i have tried code gesture not detect.
uiswipegesturerecognizer *mswipeuprecognizer = [[uiswipegesturerecognizer alloc] initwithtarget:self action:@selector(up_downbtn_waytosalon)]; [mswipeuprecognizer setdirection:uiswipegesturerecognizerdirectionup]; [self.duration_distanceview addgesturerecognizer:mswipeuprecognizer];
first off, need pass gesture recognizer selector, otherwise can't determine state of gesture.
other first check if view has userinteractionenabled
yes
, i'm guessing view doesn't user interaction.
Comments
Post a Comment