diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-12-12 11:00:10 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-12-12 11:00:10 +0300 |
commit | ad644de05146e487d5e74f7b11f880fce98a4448 (patch) | |
tree | 958a39f21f9cd7ba283c1780e893410894ff2d4f /iphone/Maps | |
parent | bd675c6b08cd7eda774548474a32787f2a96963a (diff) |
[traffic] [ios] Fixed traffic states handling.
Diffstat (limited to 'iphone/Maps')
-rw-r--r-- | iphone/Maps/Classes/CustomViews/MapViewControls/TrafficButton/MWMTrafficButtonViewController.mm | 7 |
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; |