|
@@ -64,9 +64,8 @@
|
|
|
|
|
|
- (void)setDefaultValue:(CGFloat)defaultValue {
|
|
- (void)setDefaultValue:(CGFloat)defaultValue {
|
|
_defaultValue = defaultValue;
|
|
_defaultValue = defaultValue;
|
|
- self.thicknessSlider.value = defaultValue*10;
|
|
|
|
-
|
|
|
|
- self.startLabel.text = [NSString stringWithFormat:@"%.1fpt", defaultValue * 100];
|
|
|
|
|
|
+ self.thicknessSlider.value = (float) (defaultValue * 10);
|
|
|
|
+ self.startLabel.text = [NSString stringWithFormat:@"%.0f pt", defaultValue * 100];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -83,7 +82,7 @@
|
|
- (void)buttonItemClicked_changes:(UISlider *)sender {
|
|
- (void)buttonItemClicked_changes:(UISlider *)sender {
|
|
self.sliderCount -- ;
|
|
self.sliderCount -- ;
|
|
if(self.sliderCount == 3) {
|
|
if(self.sliderCount == 3) {
|
|
- self.startLabel.text = [NSString stringWithFormat:@"%.1fpt", sender.value * self.thick];
|
|
|
|
|
|
+ self.startLabel.text = [NSString stringWithFormat:@"%.0f pt", sender.value * self.thick];
|
|
if (self.delegate && [self.delegate respondsToSelector:@selector(thicknessSliderView:thickness:)]) {
|
|
if (self.delegate && [self.delegate respondsToSelector:@selector(thicknessSliderView:thickness:)]) {
|
|
[self.delegate thicknessSliderView:self thickness:sender.value];
|
|
[self.delegate thicknessSliderView:self thickness:sender.value];
|
|
}
|
|
}
|