Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS7 Status bar change to black after search is active

I'm using UISearchBar as header of UITableView. UISearchBar style is UISearchBarStyleMinimal. And when search is active, status bar change to black. How to fix that?

Before search is active

Before search is active

Search is active

Search is active

like image 613
9891541 Avatar asked Oct 02 '13 03:10

9891541


1 Answers

you just need to do this:

self.navigationController.view.backgroundColor = [UIColor lightGrayColor];
like image 128
Silence.Kidd Avatar answered Oct 09 '22 13:10

Silence.Kidd