forked from organicmaps/organicmaps
[iOS] Fixed crash when closing Editor View.
Signed-off-by: Viktar Havaka viktor.govako@gmail.com
This commit is contained in:
parent
42ad33ef25
commit
de1641b65f
1 changed files with 5 additions and 1 deletions
|
@ -506,7 +506,11 @@ using namespace osm_auth_ios;
|
|||
#pragma mark - Properties
|
||||
|
||||
- (MapViewController *)mapViewController {
|
||||
return [(UINavigationController *)self.window.rootViewController viewControllers].firstObject;
|
||||
auto obj = [(UINavigationController *)self.window.rootViewController viewControllers].firstObject;
|
||||
if ([obj isKindOfClass:[MapViewController class]])
|
||||
return obj;
|
||||
else
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (MWMCarPlayService *)carplayService {
|
||||
|
|
Loading…
Add table
Reference in a new issue