Skip to content

Commit

Permalink
ofxAppessory
Browse files Browse the repository at this point in the history
ofxAppessory Beta
(ofxAppSensor | ofxCommunication |  ofxiUIKit)
  • Loading branch information
yufangised committed Sep 4, 2012
1 parent 5e733f0 commit 5112364
Show file tree
Hide file tree
Showing 93 changed files with 7,940 additions and 29 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added libs/.DS_Store
Binary file not shown.
33 changes: 33 additions & 0 deletions libs/DCRoundSwitch/DCRoundSwitch.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// DCRoundSwitch.h
//
// Created by Patrick Richards on 28/06/11.
// MIT License.
//
// http://twitter.com/patr
// http://domesticcat.com.au/projects
// http://github.com/domesticcatsoftware/DCRoundSwitch
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

@class DCRoundSwitchToggleLayer;
@class DCRoundSwitchOutlineLayer;
@class DCRoundSwitchKnobLayer;

@interface DCRoundSwitch : UIControl

@property (nonatomic, retain) UIColor *onTintColor; // default: blue (matches normal UISwitch)
@property (nonatomic, getter=isOn) BOOL on; // default: NO
@property (nonatomic, copy) NSString *onText; // default: 'ON' - automatically localized
@property (nonatomic, copy) NSString *offText; // default: 'OFF' - automatically localized

+ (Class)knobLayerClass;
+ (Class)outlineLayerClass;
+ (Class)toggleLayerClass;

- (void)setOn:(BOOL)newOn animated:(BOOL)animated;
- (void)setOn:(BOOL)newOn animated:(BOOL)animated ignoreControlEvents:(BOOL)ignoreControlEvents;

@end
Loading

0 comments on commit 5112364

Please sign in to comment.