forked from organicmaps/organicmaps
[ios] SearchVC scopeBar color changed
This commit is contained in:
parent
eacf9afb4b
commit
9a10542a8d
1 changed files with 2 additions and 1 deletions
|
@ -199,12 +199,13 @@ static void OnSearchResultCallback(search::Results const & res)
|
|||
segmentedControl.tintColor = [[UINavigationBar appearance] tintColor];
|
||||
else
|
||||
segmentedControl.tintColor = [UIColor whiteColor];
|
||||
|
||||
segmentedControl.selectedSegmentIndex = GetDefaultSearchScope();
|
||||
segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar;
|
||||
[segmentedControl addTarget:self action:@selector(segmentedControlValueChanged:) forControlEvents:UIControlEventValueChanged];
|
||||
_scopeView = [[ScopeView alloc] initWithFrame:CGRectMake(0, 0, self.view.width, 44) segmentedControl:segmentedControl];
|
||||
_scopeView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
|
||||
_scopeView.backgroundColor = [[UINavigationBar appearance] tintColor];
|
||||
_scopeView.backgroundColor = [UIColor colorWithColorCode:@"303e57"];
|
||||
}
|
||||
return _scopeView;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue