UIButton+RACCommandSupport.h 492 B

123456789101112131415161718192021
  1. //
  2. // UIButton+RACCommandSupport.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Ash Furrow on 2013-06-06.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class RACCommand;
  10. @interface UIButton (RACCommandSupport)
  11. /// Sets the button's command. When the button is clicked, the command is
  12. /// executed with the sender of the event. The button's enabledness is bound
  13. /// to the command's `canExecute`.
  14. @property (nonatomic, strong) RACCommand *rac_command;
  15. @end