diff options
author | Ptyl Dragon <ptyl@cloudon.com> | 2013-11-01 16:11:21 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-11-15 16:52:03 +0100 |
commit | 360f741d685835002ca89bcab97d1fa63376bfdd (patch) | |
tree | 2f8e6064250bf327be443f57fdaf09f80671a74b /ios/shared | |
parent | 541d9ac222929a4c687dfee259e2dc2e07497c77 (diff) |
fix less than 1 step limit
Change-Id: Ic5fd714ff975b6e5afbe7ff78f3fc1da398a658d
Diffstat (limited to 'ios/shared')
-rw-r--r-- | ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m | 8 |
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; |