You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
62 lines
1.3 KiB
4 years ago
|
//
|
||
|
// TFSliderView.h
|
||
|
// TFReader
|
||
|
//
|
||
|
// Created by 谢腾飞 on 2020/12/25.
|
||
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class TFSliderView;
|
||
|
@protocol TFSliderViewDelegate <NSObject>
|
||
|
|
||
|
- (void)sliderValueEndChanged:(CGFloat)endValue slider:(TFSliderView *)sender;
|
||
|
|
||
|
@end
|
||
|
|
||
|
@interface TFSliderView : UIView
|
||
|
|
||
|
@property (nonatomic ,weak) id<TFSliderViewDelegate> delegate;
|
||
|
|
||
|
// 分段式滑块 Default is NO
|
||
|
@property (nonatomic ,assign) BOOL stepSlider;
|
||
|
|
||
|
// 倒置返回值
|
||
|
@property (nonatomic ,assign) BOOL invertedValue;
|
||
|
|
||
|
// 最小值
|
||
|
@property (nonatomic ,assign) CGFloat minimumValue;
|
||
|
|
||
|
// 最大值
|
||
|
@property (nonatomic ,assign) CGFloat maximumValue;
|
||
|
|
||
|
// 滑块值
|
||
|
@property (nonatomic ,assign) CGFloat sliderValue;
|
||
|
|
||
|
// 左侧滑条颜色
|
||
|
@property (nonatomic ,strong) UIColor *minimumTintColor;
|
||
|
|
||
|
// 右侧滑条颜色
|
||
|
@property (nonatomic ,strong) UIColor *maximumTintColor;
|
||
|
|
||
|
// 左侧图片名称
|
||
|
@property (nonatomic ,copy) NSString *leftImageName;
|
||
|
|
||
|
// 右侧图片名称
|
||
|
@property (nonatomic ,copy) NSString *rightImageName;
|
||
|
|
||
|
// 左侧图片
|
||
|
@property (nonatomic ,strong) UIImage *leftImage;
|
||
|
|
||
|
// 右侧图片
|
||
|
@property (nonatomic ,strong) UIImage *rightImage;
|
||
|
|
||
|
- (instancetype)initWithFrame:(CGRect)frame sliderCutPointCount:(NSUInteger)cutPointCount;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|