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

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -