| 1234567891011121314151617181920212223242526272829 |
- //
- // customSwitchButton.h
- // 双子星云手机
- //
- // Created by xd h on 2026/1/5.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface customSwitchButton : UIView
- @property (nonatomic, assign, getter=isOn) BOOL on;
- @property (nonatomic, assign, getter=isEnabled) BOOL enabled;
- @property (nonatomic,copy) void (^didClickSwitchButtonFun)(BOOL isOn);
- // 初始化方法
- - (instancetype)initWithFrame:(CGRect)frame
- onText:(NSString *)onText
- offText:(NSString *)offText;
- @end
- NS_ASSUME_NONNULL_END
|