From 5a36fd2b7791635264bdf90980b57014aa838741 Mon Sep 17 00:00:00 2001 From: Kirill Zhdanovich Date: Mon, 3 Jun 2013 16:22:16 +0300 Subject: [PATCH] [iOS] Api Navigation Bar Style Change --- iphone/Maps/Bookmarks/PlacePageVC.mm | 7 +------ iphone/Maps/Classes/MapViewController.mm | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/iphone/Maps/Bookmarks/PlacePageVC.mm b/iphone/Maps/Bookmarks/PlacePageVC.mm index fc65bf6000..86a3264549 100644 --- a/iphone/Maps/Bookmarks/PlacePageVC.mm +++ b/iphone/Maps/Bookmarks/PlacePageVC.mm @@ -147,13 +147,8 @@ static NSString * const g_colors [] = - (void)viewWillDisappear:(BOOL)animated { - if (m_hideNavBar) - { - if (![[MapsAppDelegate theApp].m_mapViewController shouldShowNavBar]) + if (m_hideNavBar && ![[MapsAppDelegate theApp].m_mapViewController shouldShowNavBar]) [self.navigationController setNavigationBarHidden:YES animated:YES]; - else - self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; - } // Handle 3 scenarios: // 1. User pressed Remove Pin and goes back to the map - bookmark was deleted on click, do nothing // 2. User goes back to the map by pressing Map (Back) button - save possibly edited title, add bookmark diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 658852f5f1..e836f5c111 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -908,7 +908,6 @@ NSInteger compareAddress(id l, id r, void * context) // UIBarButtonItem * hide = [[[UIBarButtonItem alloc] initWithTitle:@"hide" style: UIBarButtonItemStyleDone target:self action:@selector(onHideClicked)] autorelease]; // self.navigationItem.rightBarButtonItem = hide; - self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; self.navigationItem.title = [NSString stringWithUTF8String:GetFramework().GetMapApiAppTitle().c_str()]; } }