From ad644de05146e487d5e74f7b11f880fce98a4448 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Mon, 12 Dec 2016 11:00:10 +0300 Subject: [PATCH] [traffic] [ios] Fixed traffic states handling. --- .../TrafficButton/MWMTrafficButtonViewController.mm | 7 +------ 1 file changed, 1 insertion(+), 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 * 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;