这是我用于一个应用的自定义UIScrollView。这是一个可定制的选择控制,适用于所有控件显示需求。包括通过UIAppearance对所有主要属性的定制。
要将TRSDialView添加到项目中,请将以下内容添加到您的Podfile中
playform :ios
pod 'TRSDialScrollView', '>= 1.0'
- (void) viewDidLoad
{
[super viewDidLoad];
// Set the numeric range for the dial
[self.dialView setDialRangeFrom:0 to:50];
// Set the default value
self.dialView.currentValue = 20;
}
- (void)someOtherMethod
{
NSInteger value = self.dialView.currentValue;
}
TRSDialScrollView
使用MIT许可证分发。