forked from organicmaps/organicmaps
Merge pull request #290 from igrechuhin/ig-master
[ios] Fixed bookmark sharing title.
This commit is contained in:
commit
aa5ef59233
1 changed files with 2 additions and 1 deletions
|
@ -195,9 +195,10 @@ typedef NS_ENUM(NSUInteger, MWMPlacePageManagerState)
|
|||
- (void)share
|
||||
{
|
||||
MWMPlacePageEntity * entity = self.entity;
|
||||
NSString * title = entity.bookmarkTitle ? entity.bookmarkTitle : entity.title;
|
||||
CLLocationCoordinate2D const coord = CLLocationCoordinate2DMake(entity.point.x, entity.point.y);
|
||||
MWMActivityViewController * shareVC =
|
||||
[MWMActivityViewController shareControllerForLocationTitle:entity.title
|
||||
[MWMActivityViewController shareControllerForLocationTitle:title
|
||||
location:coord
|
||||
myPosition:NO];
|
||||
[shareVC presentInParentViewController:self.ownerViewController
|
||||
|
|
Loading…
Add table
Reference in a new issue