UISegmentedControl+RACSignalSupport.h 738 B

12345678910111213141516171819202122232425
  1. //
  2. // UISegmentedControl+RACSignalSupport.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Uri Baghin on 20/07/2013.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class RACChannelTerminal;
  10. @interface UISegmentedControl (RACSignalSupport)
  11. /// Creates a new RACChannel-based binding to the receiver.
  12. ///
  13. /// nilValue - The segment to select when the terminal receives `nil`.
  14. ///
  15. /// Returns a RACChannelTerminal that sends the receiver's currently selected
  16. /// segment's index whenever the UIControlEventValueChanged control event is
  17. /// fired, and sets the selected segment index to the values it receives.
  18. - (RACChannelTerminal *)rac_newSelectedSegmentIndexChannelWithNilValue:(NSNumber *)nilValue;
  19. @end