From f3f25f5890a51d24c966076c43cee1bd9d451aba Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 28 Sep 2014 22:57:38 -0400 Subject: [PATCH] Add question about hiding passwords to setup flow. --- .../ObjC/iOS/MPSetupViewController.h | 1 + .../ObjC/iOS/MPSetupViewController.m | 4 + MasterPassword/ObjC/iOS/Storyboard.storyboard | 102 +++++++++++++++++- 3 files changed, 104 insertions(+), 3 deletions(-) diff --git a/MasterPassword/ObjC/iOS/MPSetupViewController.h b/MasterPassword/ObjC/iOS/MPSetupViewController.h index a479229a..3748b9c5 100644 --- a/MasterPassword/ObjC/iOS/MPSetupViewController.h +++ b/MasterPassword/ObjC/iOS/MPSetupViewController.h @@ -21,6 +21,7 @@ @interface MPSetupViewController : UIViewController @property(weak, nonatomic) IBOutlet UISwitch *rememberLoginSwitch; +@property(weak, nonatomic) IBOutlet UISwitch *showPasswordsSwitch; - (IBAction)close:(UIBarButtonItem *)sender; diff --git a/MasterPassword/ObjC/iOS/MPSetupViewController.m b/MasterPassword/ObjC/iOS/MPSetupViewController.m index 381b4f13..3d8e6f91 100644 --- a/MasterPassword/ObjC/iOS/MPSetupViewController.m +++ b/MasterPassword/ObjC/iOS/MPSetupViewController.m @@ -28,6 +28,8 @@ if (self.rememberLoginSwitch) self.rememberLoginSwitch.on = [[MPiOSConfig get].rememberLogin boolValue]; + if (self.showPasswordsSwitch) + self.showPasswordsSwitch.on = ![[MPiOSConfig get].hidePasswords boolValue]; } - (void)viewWillDisappear:(BOOL)animated { @@ -36,6 +38,8 @@ if (self.rememberLoginSwitch) [MPiOSConfig get].rememberLogin = @(self.rememberLoginSwitch.on); + if (self.showPasswordsSwitch) + [MPiOSConfig get].hidePasswords = @(!self.showPasswordsSwitch.on); } - (IBAction)close:(UIBarButtonItem *)sender { diff --git a/MasterPassword/ObjC/iOS/Storyboard.storyboard b/MasterPassword/ObjC/iOS/Storyboard.storyboard index 76eba53d..2b342bfa 100644 --- a/MasterPassword/ObjC/iOS/Storyboard.storyboard +++ b/MasterPassword/ObjC/iOS/Storyboard.storyboard @@ -31,6 +31,7 @@ Exo2.0-Bold Exo2.0-Bold Exo2.0-Bold + Exo2.0-Bold Exo2.0-ExtraBold @@ -75,6 +76,7 @@ Exo2.0-Regular Exo2.0-Regular Exo2.0-Regular + Exo2.0-Regular Exo2.0-Thin @@ -2092,7 +2094,7 @@ eg. apple.com, rmitchell@twitter.com - + @@ -2346,7 +2348,7 @@ However, it means that anyone who finds your device unlocked can do the same. - + @@ -3186,6 +3188,100 @@ UPCOMING: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3205,7 +3301,7 @@ UPCOMING: - +