objective c - Detect sliding up gesture on iOS -


which gesture looking capture if want detect when user slides his/her finger upwards (think of scrubbing through song, kind of motion, up) , adjust setting result (i don't want use uislider).

what guys recommend this? pan gesture recognizer or swipe?

try this:

uiswipegesturerecognizer *swiperecognizer =  [[uiswipegesturerecognizer alloc]  initwithtarget:self   action:@selector(swipedetected)]; swiperecognizer.direction = uiswipegesturerecognizerdirectionup; [self.view addgesturerecognizer:swiperecognizer]; 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -