gliubc
6/14/2018 - 2:45 AM

rac_signalForControlEvents

rac_signalForControlEvents

    [[self.buttonBack rac_signalForControlEvents:UIControlEventTouchUpInside] subscribeNext:^(id x) {

    }];
    
    @weakify(self);
    [[self.textFieldBuyNum rac_signalForControlEvents:UIControlEventEditingChanged] subscribeNext:^(id x) {
        @strongify(self);
        self.buy_num = self.textFieldBuyNum.text.integerValue;
        [self updateUI];
    }];

    [[[cell.btnPhone rac_signalForControlEvents:UIControlEventTouchUpInside] takeUntil:cell.rac_prepareForReuseSignal] subscribeNext:^(id x) {
        
    }];
    
    [[[cell.textFieldNum rac_signalForControlEvents:UIControlEventEditingDidEnd] takeUntil:cell.rac_prepareForReuseSignal] subscribeNext:^(id x) {
    
    }];