UIDatePicker+RACSignalSupport.h 654 B

12345678910111213141516171819202122232425
  1. //
  2. // UIDatePicker+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 UIDatePicker (RACSignalSupport)
  11. /// Creates a new RACChannel-based binding to the receiver.
  12. ///
  13. /// nilValue - The date to set when the terminal receives `nil`.
  14. ///
  15. /// Returns a RACChannelTerminal that sends the receiver's date whenever the
  16. /// UIControlEventValueChanged control event is fired, and sets the date to the
  17. /// values it receives.
  18. - (RACChannelTerminal *)rac_newDateChannelWithNilValue:(NSDate *)nilValue;
  19. @end