diff options
author | Ilya Grechuhin <i.grechuhin@mapswithme.com> | 2015-06-24 14:02:29 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:52:52 +0300 |
commit | 965f1f038181a6f5bae6e441cff4357f0e4dde09 (patch) | |
tree | 63a41e87bff0f3599f77415cc4c3db66182327a2 /iphone/Maps/Classes/MWMPlacePage.mm | |
parent | d0c5e0a09e7cee39eef306f7c52c1c1668ec8d42 (diff) |
[ios] Fixed layout bugs.
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePage.mm')
-rw-r--r-- | iphone/Maps/Classes/MWMPlacePage.mm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePage.mm b/iphone/Maps/Classes/MWMPlacePage.mm index 988777bf29..5fe2a0d5d5 100644 --- a/iphone/Maps/Classes/MWMPlacePage.mm +++ b/iphone/Maps/Classes/MWMPlacePage.mm @@ -46,9 +46,6 @@ extern NSString * const kAlohalyticsTapEventKey; MWMPlacePageEntity * entity = self.manager.entity; [self.basePlacePageView configureWithEntity:entity]; - if (!self.actionBar) - self.actionBar = [MWMPlacePageActionBar actionBarForPlacePage:self]; - MWMPlacePageEntityType type = entity.type; BOOL const isBookmark = type == MWMPlacePageEntityTypeBookmark; self.actionBar.bookmarkButton.selected = isBookmark; @@ -162,4 +159,13 @@ extern NSString * const kAlohalyticsTapEventKey; // This method should be ovverriden if you want to process custom pan. } +#pragma mark - Properties + +- (MWMPlacePageActionBar *)actionBar +{ + if (!_actionBar) + _actionBar = [MWMPlacePageActionBar actionBarForPlacePage:self]; + return _actionBar; +} + @end |