UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem]; @weakify(btn) UILongPressGestureRecognizer *longPressGes = [[UILongPressGestureRecognizer alloc] init]; [btn addGestureRecognizer:longPressGes]; RACSignal *timer = [RACSignal interval:0.1 onScheduler:[RACScheduler mainThreadScheduler]]; RACSignal *longPressGesSignal = [longPressGes rac_gestureSignal]; RACSignal *longPressGesBeganSignal = [longPressGesSignal filter:^BOOL(UILongPressGestureRecognizer *value) { return value.state == UIGestureRecognizerStateBegan; }]; RACSignal *longPressGesEndedSignal = [longPressGesSignal filter:^BOOL(UILongPressGestureRecognizer *value) { return value.state == UIGestureRecognizerStateEnded || value.state == UIGestureRecognizerStateCancelled || value.state == UIGestureRecognizerStateFailed ; }]; RACSignal *notifyWhenNeed = [longPressGesBeganSignal flattenMap:^RACStream *(id value) { return [timer takeUntil:longPressGesEndedSignal]; }]; [notifyWhenNeed subscribeNext:^(id x) { @strongify(btn) [btn sendActionsForControlEvents:UIControlEventTouchUpInside]; }];