diff options
author | Igor Khmurets <subzero@mapswithme.com> | 2013-12-02 17:51:41 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:08:16 +0300 |
commit | 6e1f5537f6627717ed6ae722aa50d6b1245ab30d (patch) | |
tree | 2289752c89a27ea6d3c67bbc7d8baf56f7186dfe /iphone/Maps/Classes/NavigationController.mm | |
parent | 6498073d057ef9a680b86fd14246b7bef27af028 (diff) |
[ios] Api navigation bar fix
Diffstat (limited to 'iphone/Maps/Classes/NavigationController.mm')
-rw-r--r-- | iphone/Maps/Classes/NavigationController.mm | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/iphone/Maps/Classes/NavigationController.mm b/iphone/Maps/Classes/NavigationController.mm index 3a47766120..746f26f994 100644 --- a/iphone/Maps/Classes/NavigationController.mm +++ b/iphone/Maps/Classes/NavigationController.mm @@ -24,15 +24,8 @@ - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated { - if ([viewController isMemberOfClass:[MapViewController class]]) - { - MapViewController * mapViewController = [MapsAppDelegate theApp].m_mapViewController; - [navigationController setNavigationBarHidden:![mapViewController shouldShowNavBar] animated:YES]; - } - else - { - [navigationController setNavigationBarHidden:NO animated:animated]; - } + [navigationController setNavigationBarHidden:[viewController isMemberOfClass:[MapViewController class]] animated:animated]; + if ([navigationController.viewControllers count] > 1) [viewController showBackButton]; } |