UIControl(RACSignalSupportPrivate) Category Reference
Declared in | UIControl+RACSignalSupportPrivate.h UIControl+RACSignalSupportPrivate.m |
Instance Methods
rac_channelForControlEvents:key:nilValue:
Adds a RACChannel-based interface to the receiver for the given UIControlEvents and exposes it.
- (RACChannelTerminal *)rac_channelForControlEvents:(UIControlEvents)controlEvents key:(NSString *)key nilValue:(id)nilValue
Discussion
controlEvents - A mask of UIControlEvents on which to send new values.
key - The key whose value should be read and set when a control
event fires and when a value is sent to the
RACChannelTerminal respectively.
nilValue - The value to be assigned to the key when nil
is sent to the
RACChannelTerminal.
Returns a RACChannelTerminal which will send future values from the receiver, and update the receiver when values are sent to the terminal.
Declared In
UIControl+RACSignalSupportPrivate.h