UITableViewHeaderFooterView+RACSignalSupport.h 851 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // UITableViewHeaderFooterView+RACSignalSupport.h
  3. // ReactiveObjC
  4. //
  5. // Created by Syo Ikeda on 12/30/13.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class RACSignal<__covariant ValueType>;
  10. @class RACUnit;
  11. NS_ASSUME_NONNULL_BEGIN
  12. // This category is only applicable to iOS >= 6.0.
  13. @interface UITableViewHeaderFooterView (RACSignalSupport)
  14. /// A signal which will send a RACUnit whenever -prepareForReuse is invoked upon
  15. /// the receiver.
  16. ///
  17. /// Examples
  18. ///
  19. /// [[[self.cancelButton
  20. /// rac_signalForControlEvents:UIControlEventTouchUpInside]
  21. /// takeUntil:self.rac_prepareForReuseSignal]
  22. /// subscribeNext:^(UIButton *x) {
  23. /// // do other things
  24. /// }];
  25. @property (nonatomic, strong, readonly) RACSignal<RACUnit *> *rac_prepareForReuseSignal;
  26. @end
  27. NS_ASSUME_NONNULL_END