diff options
author | v.mikhaylenko <v.mikhaylenko@corp.mail.ru> | 2015-09-04 16:25:06 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:03:48 +0300 |
commit | 98a51d6c07614eb6bc35c94a2bf87ea8ca9f8916 (patch) | |
tree | e9cf3eaa347d2d14b5975b94bf3e08aca3b5025e /iphone/Maps/Classes/MWMiPadPlacePage.mm | |
parent | 747cdb28dc393b779958eb5d5a16db149164742b (diff) |
[ios] Replace all animation duration to default.
Diffstat (limited to 'iphone/Maps/Classes/MWMiPadPlacePage.mm')
-rw-r--r-- | iphone/Maps/Classes/MWMiPadPlacePage.mm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/iphone/Maps/Classes/MWMiPadPlacePage.mm b/iphone/Maps/Classes/MWMiPadPlacePage.mm index 67cb39e1c1..0eea8ac5f6 100644 --- a/iphone/Maps/Classes/MWMiPadPlacePage.mm +++ b/iphone/Maps/Classes/MWMiPadPlacePage.mm @@ -6,6 +6,7 @@ // Copyright (c) 2015 MapsWithMe. All rights reserved. // +#import "Common.h" #import "MWMiPadPlacePage.h" #import "MWMPlacePageViewManager.h" #import "MWMPlacePageActionBar.h" @@ -77,7 +78,7 @@ static CGFloat const kBottomOffset = 12.; NSUInteger const count = self.viewControllers.count; CGFloat const height = count > 1 ? ((UIViewController *)self.viewControllers[count - 2]).view.height : 0.0; - [UIView animateWithDuration:0.1 animations:^ + [UIView animateWithDuration:kDefaultAnimationDuration animations:^ { self.view.height = height; } @@ -119,7 +120,7 @@ static CGFloat const kBottomOffset = 12.; - (void)show { UIView * view = self.navigationController.view; - [UIView animateWithDuration:0.2f animations:^ + [UIView animateWithDuration:kDefaultAnimationDuration animations:^ { view.minX = kLeftOffset; view.alpha = 1.0; @@ -130,7 +131,7 @@ static CGFloat const kBottomOffset = 12.; { UIView * view = self.navigationController.view; UIViewController * controller = self.navigationController; - [UIView animateWithDuration:0.2f animations:^ + [UIView animateWithDuration:kDefaultAnimationDuration animations:^ { view.maxX = 0.0; view.alpha = 0.0; @@ -158,7 +159,7 @@ static CGFloat const kBottomOffset = 12.; - (void)addBookmark { [super addBookmark]; - [UIView animateWithDuration:0.1 animations:^ + [UIView animateWithDuration:kDefaultAnimationDuration animations:^ { [self updatePlacePageLayout]; }]; @@ -167,7 +168,7 @@ static CGFloat const kBottomOffset = 12.; - (void)removeBookmark { [super removeBookmark]; - [UIView animateWithDuration:0.1 animations:^ + [UIView animateWithDuration:kDefaultAnimationDuration animations:^ { [self updatePlacePageLayout]; }]; @@ -278,7 +279,7 @@ static CGFloat const kBottomOffset = 12.; - (void)setTopBound:(CGFloat)topBound { super.topBound = topBound; - [UIView animateWithDuration:0.2f animations:^ + [UIView animateWithDuration:kDefaultAnimationDuration animations:^ { self.navigationController.view.minY = topBound + kTopOffset; }]; |