Commit 435f9148 authored by sanmarcos's avatar sanmarcos Committed by Felix Paul Kühne
Browse files

Fix crash on launch in iOS 6.1. -[UINavigationBar/UISearchBar barTintColor] is iOS 7+ only


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 9f194207
......@@ -154,7 +154,9 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
if (_usingTableViewToShowData) {
_searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
UINavigationBar *navBar = self.navigationController.navigationBar;
_searchBar.barTintColor = navBar.barTintColor;
if (SYSTEM_RUNS_IOS7_OR_LATER) {
_searchBar.barTintColor = navBar.barTintColor;
}
_searchBar.tintColor = navBar.tintColor;
_searchBar.translucent = navBar.translucent;
_searchBar.opaque = navBar.opaque;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment