From 396f6fa7bdd854ffbdf87e574ed3ee9f7db281c7 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Mon, 4 Nov 2013 08:22:21 -0500 Subject: [PATCH] Navbar overlap in all-sites VC. [FIXED] Navbar hack in all-sites causing overlap on device in iOS 7. [UPDATED] iCloud defaults to off. --- External/LoveLyndir | 2 +- .../ObjC/iOS/MPElementListAllViewController.h | 2 - .../ObjC/iOS/MPElementListAllViewController.m | 8 +- .../ObjC/iOS/MPMainViewController.m | 4 +- .../ObjC/iOS/MainStoryboard_iPhone.storyboard | 79 +++++++++---------- .../project.pbxproj | 6 ++ .../ObjC/iOS/Settings.bundle/Root.plist | 2 +- 7 files changed, 51 insertions(+), 52 deletions(-) diff --git a/External/LoveLyndir b/External/LoveLyndir index e2edbb3d..5ec3681a 160000 --- a/External/LoveLyndir +++ b/External/LoveLyndir @@ -1 +1 @@ -Subproject commit e2edbb3d7757b8f25cefe763d32ce86ff3f1ebae +Subproject commit 5ec3681a3ca80a520d4255fe07bdb2b0b3d94d22 diff --git a/MasterPassword/ObjC/iOS/MPElementListAllViewController.h b/MasterPassword/ObjC/iOS/MPElementListAllViewController.h index b848aee1..984cf97b 100644 --- a/MasterPassword/ObjC/iOS/MPElementListAllViewController.h +++ b/MasterPassword/ObjC/iOS/MPElementListAllViewController.h @@ -21,8 +21,6 @@ @interface MPElementListAllViewController : MPElementListController -@property(weak, nonatomic) IBOutlet UINavigationBar *navigationBar; - - (IBAction)close:(id)sender; - (IBAction)add:(id)sender; diff --git a/MasterPassword/ObjC/iOS/MPElementListAllViewController.m b/MasterPassword/ObjC/iOS/MPElementListAllViewController.m index fe3dedef..381f732f 100644 --- a/MasterPassword/ObjC/iOS/MPElementListAllViewController.m +++ b/MasterPassword/ObjC/iOS/MPElementListAllViewController.m @@ -39,13 +39,13 @@ [super viewWillAppear:animated]; if ([self.filter isEqualToString:MPElementListFilterNone]) { - self.navigationBar.topItem.title = @"All Sites"; - self.navigationBar.topItem.rightBarButtonItem = [[UIBarButtonItem alloc] + self.navigationItem.title = @"All Sites"; + self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(add:)]; } else if ([self.filter isEqualToString:MPElementListFilterOutdated]) { - self.navigationBar.topItem.title = @"Outdated"; - self.navigationBar.topItem.rightBarButtonItem = [[UIBarButtonItem alloc] + self.navigationItem.title = @"Outdated"; + self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Upgrade All" style:UIBarButtonItemStyleBordered target:self action:@selector(upgradeAll:)]; } diff --git a/MasterPassword/ObjC/iOS/MPMainViewController.m b/MasterPassword/ObjC/iOS/MPMainViewController.m index 82370ba1..88dfeed9 100644 --- a/MasterPassword/ObjC/iOS/MPMainViewController.m +++ b/MasterPassword/ObjC/iOS/MPMainViewController.m @@ -48,8 +48,8 @@ if ([[segue identifier] isEqualToString:@"MP_ChooseType"]) ((MPTypeViewController *)[segue destinationViewController]).delegate = self; if ([[segue identifier] isEqualToString:@"MP_AllSites"]) { - ((MPElementListAllViewController *)[segue destinationViewController]).delegate = self; - ((MPElementListAllViewController *)[segue destinationViewController]).filter = sender; + ((MPElementListAllViewController *)[[segue destinationViewController] topViewController]).delegate = self; + ((MPElementListAllViewController *)[[segue destinationViewController] topViewController]).filter = sender; } } diff --git a/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard b/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard index a12aec8e..a647b2b6 100644 --- a/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard +++ b/MasterPassword/ObjC/iOS/MainStoryboard_iPhone.storyboard @@ -1,5 +1,5 @@ - + @@ -491,7 +491,7 @@ Your passwords will be AES-encrypted with your master password. 119-20:51:59 MPAppDelegate_Store.m:278 | DEBUG : [StoreManager] Will load cloud store: 0B3CA2DF-5796-44DF-B5E0-121EC3846464 (definite). 119-20:51:59 PearlConfig.m:193 | INFO : Lock screen will appear 119-20:51:59 MPiOSAppDelegate.m:412 | INFO : Re-activated -119-20:51:59 PearlConfig.m:180 | DEBUG : MPiOSConfig.launchCount = [70 ->] 71 +119-20:51:59 PearlConfig.m:180 | DEBUG : MPiOSConfig.launchCount = [70 ->] 71 119-20:52:02 MPAppDelegate_Store.m:278 | DEBUG : [StoreManager] Clearing stores... 119-20:52:03 MPAppDelegate_Store.m:278 | DEBUG : [StoreManager] Loading store without seeding. 119-20:52:09 MPAppDelegate_Store.m:278 | DEBUG : [StoreManager] Cloud enabled and successfully loaded cloud store. @@ -1099,7 +1099,7 @@ L4m3P4sSw0rD - + @@ -1860,7 +1860,7 @@ If you set a custom password, it will be encrypted before it is saved to the clo - + @@ -1883,56 +1883,51 @@ If you set a custom password, it will be encrypted before it is saved to the clo - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1991,7 +1986,7 @@ If you set a custom password, it will be encrypted before it is saved to the clo - + @@ -2200,7 +2195,7 @@ If you set a custom password, it will be encrypted before it is saved to the clo