|
@@ -36,7 +36,7 @@
|
|
|
self.thicknessSlider = [[UISlider alloc] init];
|
|
|
self.thicknessSlider.autoresizingMask = UIViewAutoresizingFlexibleWidth;
|
|
|
self.thicknessSlider.maximumValue = 10.0;
|
|
|
- self.thicknessSlider.minimumValue = 1.0;
|
|
|
+ self.thicknessSlider.minimumValue = 0.1;
|
|
|
[self.thicknessSlider addTarget:self action:@selector(buttonItemClicked_changes:) forControlEvents:UIControlEventValueChanged];
|
|
|
[self addSubview:self.thicknessSlider];
|
|
|
|
|
@@ -65,7 +65,7 @@
|
|
|
- (void)setDefaultValue:(CGFloat)defaultValue {
|
|
|
_defaultValue = defaultValue;
|
|
|
self.thicknessSlider.value = (float) (defaultValue * 10);
|
|
|
- self.startLabel.text = [NSString stringWithFormat:@"%d pt", (int)defaultValue * 100];
|
|
|
+ self.startLabel.text = [NSString stringWithFormat:@"%d pt", (int)(defaultValue * 100)];
|
|
|
}
|
|
|
|
|
|
|
|
@@ -80,6 +80,7 @@
|
|
|
#pragma mark - Action
|
|
|
|
|
|
- (void)buttonItemClicked_changes:(UISlider *)sender {
|
|
|
+ NSLog(@"senderValue %f",sender.value);
|
|
|
self.sliderCount -- ;
|
|
|
if(self.sliderCount == 3) {
|
|
|
self.startLabel.text = [NSString stringWithFormat:@"%.0f pt", sender.value * self.thick];
|