// // ZQTCustomSwitch.h // ZQTCustomSwitch // // Created by 赵群涛 on 16/5/25. // Copyright © 2016年 ZQT. All rights reserved. // #import @protocol ZQTCustomSwitchDelegate -(void)handleGestureRecognizerWithSwithOn:(BOOL)isOn; @end @interface ZQTCustomSwitch : UIControl @property (nonatomic, assign, getter = isOn) BOOL on; @property (nonatomic, strong) UIColor *onTintColor; @property (nonatomic, strong) UIColor *tintColor; @property (nonatomic, strong) UIColor *thumbTintColor; @property (nonatomic, assign) NSInteger switchKnobSize; @property (nonatomic, strong) UIColor *textColor; @property (nonatomic, strong) UIFont *textFont; @property (nonatomic, strong) NSString *onText; @property (nonatomic, strong) NSString *offText; @property (nonatomic,weak)iddelegate; - (void)setOn:(BOOL)on animated:(BOOL)animated; - (id)initWithFrame:(CGRect)frame onColor:(UIColor *)onColor offColor:(UIColor *)offColor font:(UIFont *)font ballSize:(NSInteger )ballSize; @end