From 360f741d685835002ca89bcab97d1fa63376bfdd Mon Sep 17 00:00:00 2001 From: Ptyl Dragon Date: Fri, 1 Nov 2013 16:11:21 +0200 Subject: fix less than 1 step limit Change-Id: Ic5fd714ff975b6e5afbe7ff78f3fc1da398a658d --- .../objective_c/view_controllers/MLOTestingTileParameter.m | 8 ++++---- 1 file 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; -- cgit