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

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -