12345678910111213141516171819202122232425 |
- //
- // CloudControlButton.h
- // MidiPlayer
- //
- // Created by Kyle on 2021/12/6.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @class CloudControlButton;
- typedef void(^ControlAction)(CloudControlButton *sender, BOOL isSelected);
- @interface CloudControlButton : UIView
- @property (nonatomic, assign) BOOL isSelected;
- + (instancetype)createButtonWithImage:(NSString *)imageName selectImage:(NSString *)selectImage buttonTitle:(NSString *)buttonTitle selectTitle:(NSString *)selectTitle tag:(NSInteger)tag frame:(CGRect)frame callback:(ControlAction)callback;
- - (void)showSpeed:(NSInteger)speed;
- @end
- NS_ASSUME_NONNULL_END
|