[iOS] Api Navigation Bar Style Change

This commit is contained in:
Kirill Zhdanovich 2013-06-03 16:22:16 +03:00 committed by Alex Zolotarev
parent 63f0b3f5a0
commit 5a36fd2b77
2 changed files with 1 additions and 7 deletions

View file

@ -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

View file

@ -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()];
}
}