UIActionSheet+RACSignalSupport.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // UIActionSheet+RACSignalSupport.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Dave Lee on 2013-06-22.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class RACDelegateProxy;
  10. @class RACSignal;
  11. @interface UIActionSheet (RACSignalSupport)
  12. /// A delegate proxy which will be set as the receiver's delegate when any of the
  13. /// methods in this category are used.
  14. @property (nonatomic, strong, readonly) RACDelegateProxy *rac_delegateProxy;
  15. /// Creates a signal for button clicks on the receiver.
  16. ///
  17. /// When this method is invoked, the `rac_delegateProxy` will become the
  18. /// receiver's delegate. Any previous delegate will become the -[RACDelegateProxy
  19. /// rac_proxiedDelegate], so that it receives any messages that the proxy doesn't
  20. /// know how to handle. Setting the receiver's `delegate` afterward is
  21. /// considered undefined behavior.
  22. ///
  23. /// Returns a signal which will send the index of the specific button clicked.
  24. /// The signal will complete when the receiver is deallocated.
  25. - (RACSignal *)rac_buttonClickedSignal;
  26. @end