From 781e4edac5d7d2279a4d31d71a8b6b5218fb259c Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 3 Nov 2013 20:39:49 +0200 Subject: Tweak default values of tunables and use larger default step size It is more interesting to get smaller text in the initial tile. Also, make the tile fit on the screen of an iPad. Change-Id: Ibe4e7f055ec2782a4fd96a3ae585d4630449f0ee --- .../objective_c/view_controllers/MLOTestingTileParameter.m | 6 +++++- .../testing_tiles/MLOTestingTileParametersViewController.h | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'ios/shared') 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 779b84dd1797..f43dfb8e322b 100644 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m +++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m @@ -21,7 +21,7 @@ @property UIStepper * stepStepper; @end -static const CGFloat DEFAULT_STEP_VALUE = 1; +static const CGFloat DEFAULT_STEP_VALUE = 10; @implementation MLOTestingTileParameter @@ -36,6 +36,10 @@ static const CGFloat DEFAULT_STEP_VALUE = 1; [self initLabel:label]; self.dataStepper = [self stepperWithMinValue:-MAXFLOAT]; self.stepStepper = [self stepperWithMinValue:1]; + // The step stepper obviously needs a step value of 1, + // and an initial value of DEFAULT_STEP_VALUE. + self.stepStepper.stepValue = 1; + self.stepStepper.value = DEFAULT_STEP_VALUE; [self initDataTextField]; [self initStepTextField]; } diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h index ffbf903b6f5a..3ca92f340ad5 100644 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h +++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h @@ -9,12 +9,12 @@ #import "MLOViewController.h" #import "MLOTestingTileSubviewControllerProtocol.h" -static const CGFloat CONTEXT_WIDTH_DEFAULT = 600; -static const CGFloat CONTEXT_HEIGHT_DEFAULT = 600; -static const CGFloat TILE_POS_X_DEFAULT = 500; -static const CGFloat TILE_POS_Y_DEFAULT = 620; -static const CGFloat TILE_WIDTH_DEFAULT = 1000; -static const CGFloat TILE_HEIGHT_DEFAULT = 1020; +static const CGFloat CONTEXT_WIDTH_DEFAULT = 450; +static const CGFloat CONTEXT_HEIGHT_DEFAULT = 450; +static const CGFloat TILE_POS_X_DEFAULT = 400; +static const CGFloat TILE_POS_Y_DEFAULT = 420; +static const CGFloat TILE_WIDTH_DEFAULT = 250; +static const CGFloat TILE_HEIGHT_DEFAULT = 250; @interface MLOTestingTileParametersViewController : MLOViewController @property CGFloat contextWidth, contextHeight, tilePosX, tilePosY, tileWidth, tileHeight; -- cgit