I have an IBOutletCollection (TextFields). I can collect all rac_textSignals dynamically, but now I want to reduce the values of these signals, not knowing how many arguments RacTuple will have (the collection of output data may vary).
NSMutableArray *signals = [@[] mutableCopy];
[self.textFields enumerateObjectsUsingBlock:^(UITextField *textField, NSUInteger idx, BOOL *stop) {
[signals addObject:textField.rac_textSignal];
}];
RACSignal *signal = [RACSignal combineLatest:signals];
How to do it? I cannot find the path using the combLatest: reduce or reduceEach: method.
Thanks in advance.
source
share