在iOS中无法从底部到顶部检测滑动位置

时间:2015-08-25 05:55:35

标签: ios uigesturerecognizer

我已尝试使用此代码,但手势未检测到。

 UISwipeGestureRecognizer *mSwipeUpRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(up_downBtn_waytosalon)];
 [mSwipeUpRecognizer setDirection:UISwipeGestureRecognizerDirectionUp];
 [self.duration_distanceView addGestureRecognizer:mSwipeUpRecognizer];

0 个答案:

没有答案