我有一个UIView这样的UILongPressGestureRecognizer:
    movementGestureRecognizer = [[UILongPressGestureRecognizer alloc] init];
    [movementGestureRecognizer setDelegate:self];
    [movementGestureRecognizer setMinimumPressDuration:0.0f];
    [self addGestureRecognizer:movementGestureRecognizer];
看名字就知道了,习惯了,一长按就UIView可以左右移动了。
问题是,我还希望能够添加一些其他类型的手势,例如:
       optionsGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(options:)];
        [optionsGestureRecognizer setNumberOfTapsRequired:2];
        [self addGestureRecognizer:optionsGestureRecognizer];
问题是,我无法打电话options:,因为movementGestureRecognizer“吸”了所有的手势。有没有办法阻止、取消movementGestureRecognizer或延迟呢?
编辑 1.0
如果我执行以下操作,options:我可以拨打电话:TapGestureRecognizer
    [movementGestureRecognizer setMinimumPressDuration:0.1f];
尽管如此,就可用性而言,它并不是完美的解决方案......