forked from organicmaps/organicmaps
[ios] Share location error message added
This commit is contained in:
parent
d0daf38cfd
commit
13672bcd68
1 changed files with 4 additions and 1 deletions
|
@ -772,7 +772,10 @@ const long long LITE_IDL = 431183278L;
|
|||
}
|
||||
else if (buttonIndex == 4)
|
||||
{
|
||||
[ShareActionSheet showShareActionSheetInView:self.view withObject:self];
|
||||
if ([MapsAppDelegate theApp].m_locationManager.lastLocation)
|
||||
[ShareActionSheet showShareActionSheetInView:self.view withObject:self];
|
||||
else
|
||||
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"unknown_current_position", nil) message:nil delegate:nil cancelButtonTitle:NSLocalizedString(@"ok", nil) otherButtonTitles:nil] show];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue