CloudControlButton.h 632 B

12345678910111213141516171819202122232425
  1. //
  2. // CloudControlButton.h
  3. // MidiPlayer
  4. //
  5. // Created by Kyle on 2021/12/6.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @class CloudControlButton;
  10. typedef void(^ControlAction)(CloudControlButton *sender, BOOL isSelected);
  11. @interface CloudControlButton : UIView
  12. @property (nonatomic, assign) BOOL isSelected;
  13. + (instancetype)createButtonWithImage:(NSString *)imageName selectImage:(NSString *)selectImage buttonTitle:(NSString *)buttonTitle selectTitle:(NSString *)selectTitle tag:(NSInteger)tag frame:(CGRect)frame callback:(ControlAction)callback;
  14. - (void)showSpeed:(NSInteger)speed;
  15. @end
  16. NS_ASSUME_NONNULL_END