FUSwitch.h 900 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // FUSwitch.h
  3. // Interest inducing
  4. //
  5. // Created by 刘祺旭 on 15/4/13.
  6. // Copyright (c) 2015年 . All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface FUSwitch : UIControl
  10. @property (nonatomic, assign, getter = isOn) BOOL on;
  11. @property (nonatomic, strong) UIColor *onTintColor;
  12. @property (nonatomic, strong) UIColor *tintColor;
  13. @property (nonatomic, strong) UIColor *thumbTintColor;
  14. @property (nonatomic, assign) NSInteger switchKnobSize;
  15. @property (nonatomic, strong) UIColor *textColor;
  16. @property (nonatomic, strong) UIFont *textFont;
  17. @property (nonatomic, strong) NSString *onText;
  18. @property (nonatomic, strong) NSString *offText;
  19. @property (nonatomic, strong) UILabel *offLabel;
  20. - (void)setOn:(BOOL)on animated:(BOOL)animated;
  21. - (id)initWithFrame:(CGRect)frame onColor:(UIColor *)onColor offColor:(UIColor *)offColor font:(UIFont *)font ballSize:(NSInteger )ballSize;
  22. @end