summaryrefslogtreecommitdiff
path: root/ios/shared
diff options
context:
space:
mode:
Diffstat (limited to 'ios/shared')
-rw-r--r--ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m
index a661539c3ad7..89267e5c8fd2 100644
--- a/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m
+++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m
@@ -34,18 +34,18 @@ static const CGFloat DEFAULT_STEP_VALUE = 1;
self.widthIsNotHeightExtractor = widthIsNotHeightExtractor;
self.defaultValue = defaultValue;
[self initLabel:label];
- self.dataStepper = [self createStepper];
- self.stepStepper = [self createStepper];
+ self.dataStepper = [self stepperWithMinValue:-MAXFLOAT];
+ self.stepStepper = [self stepperWithMinValue:1];
[self initDataTextField];
[self initStepTextField];
}
return self;
}
--(UIStepper *) createStepper{
+-(UIStepper *) stepperWithMinValue:(CGFloat) minValue{
UIStepper * stepper = [UIStepper new];
stepper.maximumValue = MAXFLOAT;
- stepper.minimumValue = -MAXFLOAT;
+ stepper.minimumValue = minValue;
stepper.stepValue = DEFAULT_STEP_VALUE;
stepper.autorepeat = YES;
stepper.continuous = NO;