diff --git a/MasterPassword/ObjC/iOS/MPCombinedViewController.h b/MasterPassword/ObjC/iOS/MPCombinedViewController.h
index 814892f2..8fe951f0 100644
--- a/MasterPassword/ObjC/iOS/MPCombinedViewController.h
+++ b/MasterPassword/ObjC/iOS/MPCombinedViewController.h
@@ -23,9 +23,6 @@ typedef NS_ENUM(NSUInteger, MPCombinedMode) {
@interface MPCombinedViewController : UIViewController
-@property (strong, nonatomic) IBOutlet UIView *usersView;
-@property (strong, nonatomic) IBOutlet UIView *passwordsView;
-
@property(assign, nonatomic) MPCombinedMode mode;
@end
diff --git a/MasterPassword/ObjC/iOS/MPCombinedViewController.m b/MasterPassword/ObjC/iOS/MPCombinedViewController.m
index 69b55f18..1673410a 100644
--- a/MasterPassword/ObjC/iOS/MPCombinedViewController.m
+++ b/MasterPassword/ObjC/iOS/MPCombinedViewController.m
@@ -25,7 +25,6 @@
@interface MPCombinedViewController()
-@property(strong, nonatomic) IBOutlet NSLayoutConstraint *passwordsTopConstraint;
@property(nonatomic, weak) MPUsersViewController *usersVC;
@property(nonatomic, weak) MPEmergencyViewController *emergencyVC;
@end
@@ -79,6 +78,11 @@
self.emergencyVC = segue.destinationViewController;
}
+- (BOOL)prefersStatusBarHidden {
+
+ return self.mode == MPCombinedModeUserSelection;
+}
+
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleLightContent;
@@ -121,7 +125,12 @@
return;
_mode = mode;
+ [self setNeedsStatusBarAppearanceUpdate];
[self becomeFirstResponder];
+ [self.usersVC setNeedsStatusBarAppearanceUpdate];
+ [self.usersVC.view setNeedsUpdateConstraints];
+ [self.usersVC.view setNeedsLayout];
+ dbg(@"top layout length: %f", self.usersVC.topLayoutGuide.length);
switch (self.mode) {
case MPCombinedModeUserSelection: {
@@ -139,8 +148,6 @@
break;
}
}
-
- [self.passwordsTopConstraint apply];
}
#pragma mark - Private
diff --git a/MasterPassword/ObjC/iOS/MPUsersViewController.m b/MasterPassword/ObjC/iOS/MPUsersViewController.m
index 06d646b5..465ede41 100644
--- a/MasterPassword/ObjC/iOS/MPUsersViewController.m
+++ b/MasterPassword/ObjC/iOS/MPUsersViewController.m
@@ -98,6 +98,14 @@ typedef NS_ENUM(NSUInteger, MPActiveUserState) {
[self.marqueeTipTimer invalidate];
}
+- (void)viewDidLayoutSubviews {
+
+ [super viewDidLayoutSubviews];
+
+ [self.avatarCollectionView.collectionViewLayout invalidateLayout];
+}
+
+
#pragma mark - UITextFieldDelegate
- (void)textFieldDidEndEditing:(UITextField *)textField {
diff --git a/MasterPassword/ObjC/iOS/Storyboard.storyboard b/MasterPassword/ObjC/iOS/Storyboard.storyboard
index fa09df39..f0a98fe2 100644
--- a/MasterPassword/ObjC/iOS/Storyboard.storyboard
+++ b/MasterPassword/ObjC/iOS/Storyboard.storyboard
@@ -16,18 +16,18 @@
-
+
-
-
+
+
-
+
-
+
@@ -35,33 +35,33 @@
-
-
+
+
-
+
-
+
-
+
-
+
-
+
@@ -70,7 +70,7 @@
-
+
-
-
+
+
-
-
+
+
@@ -131,7 +131,7 @@
-