-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathUUVerticalSliderView.h
29 lines (21 loc) · 1.01 KB
/
UUVerticalSliderView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// UUVerticalSliderView.h
// Useful Utilities - Vertical slider view drop in replacement for OS horizontal slider
//
// (c) 2014, Jonathan Hays. All Rights Reserved.
//
// Smile License:
// You are free to use this code for whatever purposes you desire. The only requirement is that you smile everytime you use it.
//
// Contact: @cheesemaker or jon@silverpinesoftware.com
#import <UIKit/UIKit.h>
@interface UUVerticalSliderView : UIControl
- (instancetype) initWithFrame:(CGRect)frame;
- (instancetype) initWithBackground:(UIImage*)background andSlider:(UIImage*)slider; //Uses the background image as the frame
@property (nonatomic, assign) float value; // default 0.0. this value will be pinned to min/max
@property (nonatomic, assign) float minimumValue;
@property (nonatomic, assign) float maximumValue;
@property (nonatomic, assign) BOOL snapToIntegerValues;
- (void) setThumbImage:(UIImage *)image forState:(UIControlState)state;
- (void) setTrackImage:(UIImage *)image forState:(UIControlState)state;
@end