Iphone iOS刷卡手势-刷卡延迟时间

Iphone iOS刷卡手势-刷卡延迟时间,iphone,ios,objective-c,Iphone,Ios,Objective C,我有一个UIWebview,在这里我使用swippegestrue加载多个URL,我将滑动到下一页。我用这个代码来做这个 UISwipeGestureRecognizer* swipeUpGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeUpFrom:)]; swipeUpGestureRecognizer.direction = UISwip

我有一个
UIWebview
,在这里我使用swippegestrue加载多个URL,我将滑动到下一页。我用这个代码来做这个

UISwipeGestureRecognizer* swipeUpGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeUpFrom:)];
swipeUpGestureRecognizer.direction = UISwipeGestureRecognizerDirectionUp;
handleswipupfrom
方法中,我正在
webview
中加载下一个URL。
一切都能完美地工作。但是刷卡速度太快了。我想推迟一段时间,有什么想法吗……

可能会有点混乱,但如果没有更干净的解决方案,请尝试以下方法:

- (void)handleSwipeUpFrom:(id)sender
{
    [self performSelector:@selector(anotherMethod:) withObject:object afterDelay:1.0];
}

我同意。如果需要延迟,请插入延迟。实现这一点的标准方法是延迟性能:对象是您是否需要将任何信息传递到辅助方法(可能是方向)。如果需要,您的第二个方法将如下所示:
-(void)anotherMethod:(id)object
如果您不需要传递任何内容,您可以
使用object:nil