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:
authorIlya Grechuhin <i.grechuhin@gmail.com>2016-12-12 11:00:10 +0300
committerIlya Grechuhin <i.grechuhin@gmail.com>2016-12-12 11:00:10 +0300
commitad644de05146e487d5e74f7b11f880fce98a4448 (patch)
tree958a39f21f9cd7ba283c1780e893410894ff2d4f /iphone/Maps
parentbd675c6b08cd7eda774548474a32787f2a96963a (diff)
[traffic] [ios] Fixed traffic states handling.
Diffstat (limited to 'iphone/Maps')
-rw-r--r--iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm7
1 files changed, 1 insertions, 6 deletions
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm
index 4f886491fa..13e8fd36d5 100644
--- a/iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm
+++ b/iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm
@@ -57,17 +57,12 @@ NSArray<UIImage *> * imagesWithName(NSString * name)
[ovc addChildViewController:self];
[ovc.view addSubview:self.view];
[self configLayout];
+ [self refreshAppearance];
[MWMTrafficManager addObserver:self];
}
return self;
}
-- (void)viewWillAppear:(BOOL)animated
-{
- [super viewWillAppear:animated];
- [self refreshAppearance];
-}
-
- (void)configLayout
{
UIView * sv = self.view;