Commit 9855cbf0 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

local network: prevent NSInvalidArgumentException on iOS 6 since the searchbar...

local network: prevent NSInvalidArgumentException on iOS 6 since the searchbar style setter was introduced in iOS 7
parent a825a3fa
......@@ -133,7 +133,8 @@
_searchDisplayController.delegate = self;
_searchDisplayController.searchResultsDataSource = self;
_searchDisplayController.searchResultsDelegate = self;
_searchDisplayController.searchBar.searchBarStyle = UIBarStyleBlack;
if (SYSTEM_RUNS_IOS7_OR_LATER)
_searchDisplayController.searchBar.searchBarStyle = UIBarStyleBlack;
_searchBar.delegate = self;
self.tableView.tableHeaderView = _searchBar; //this line add the searchBar on the top of tableView.
......
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