forked from organicmaps/organicmaps
[iOS] dismiss popover when want to show map
This commit is contained in:
parent
348420a61a
commit
8af4b1db76
1 changed files with 1 additions and 0 deletions
|
@ -255,6 +255,7 @@ void InitLocalizedStrings()
|
|||
-(void)showMap
|
||||
{
|
||||
[m_navController popToRootViewControllerAnimated:YES];
|
||||
[m_mapViewController dismissPopover];
|
||||
if (![m_navController.visibleViewController isMemberOfClass:NSClassFromString(@"MapViewController")])
|
||||
[m_mapViewController dismissModalViewControllerAnimated:YES];
|
||||
m_navController.navigationBarHidden = YES;
|
||||
|
|
Loading…
Add table
Reference in a new issue