Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2015-04-17 18:48:43 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:52:38 +0300
commit9d2141ae12860ba6f587c97ca31d3986be2a4b51 (patch)
tree6bf88c44032eb0cdb9adea1698d355b43f30e44e /iphone/Maps/Classes/MWMPlacePageActionBar.mm
parent628476581b9783b865eeda3ba8a274bfc8086f98 (diff)
[ios] iPhone landscape placepage
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePageActionBar.mm')
-rw-r--r--iphone/Maps/Classes/MWMPlacePageActionBar.mm38
1 files changed, 38 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePageActionBar.mm b/iphone/Maps/Classes/MWMPlacePageActionBar.mm
new file mode 100644
index 0000000000..134eff193e
--- /dev/null
+++ b/iphone/Maps/Classes/MWMPlacePageActionBar.mm
@@ -0,0 +1,38 @@
+//
+// MWMPlacePageActionBar.m
+// Maps
+//
+// Created by v.mikhaylenko on 28.04.15.
+// Copyright (c) 2015 MapsWithMe. All rights reserved.
+//
+
+#import "MWMPlacePageActionBar.h"
+#import "MWMBasePlacePageView.h"
+#import "UIKitCategories.h"
+
+static NSString * const kPlacePageActionBarNibName = @"PlacePageActionBar";
+
+@interface MWMPlacePageActionBar ()
+
+@property (weak, nonatomic) MWMBasePlacePageView *placePage;
+
+@end
+
+@implementation MWMPlacePageActionBar
+
++ (MWMPlacePageActionBar *)actionBarForPlacePage:(MWMBasePlacePageView *)placePage
+{
+ MWMPlacePageActionBar *bar = [[[NSBundle mainBundle] loadNibNamed:kPlacePageActionBarNibName owner:self options:nil] firstObject];
+ bar.placePage = placePage;
+ bar.width = placePage.width;
+ return bar;
+}
+
+- (IBAction)bookmarkTap:(id)sender
+{
+ [self.placePage addBookmark];
+}
+
+- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { }
+
+@end