If you need to change the color or appearance of the Status Bar of iOS then follow simple steps.
in your code file where you had created or initialized UINavigationController just write few line of code there.
Find similar line as mentioned below in your code file :-
UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:yourViewController];
and write these lines of code:-
UIImageView *statusBarView = [[UIImageView alloc] initWithFrame:CGRectMake(0, -20, 320, 22)];
[statusBarView setImage:[UIImage imageNamed:@"status.png"]];
[nav.navigationBar addSubview:statusBarView];
You can use image of any color of your choice like I have used here (status.png).
Happy Coding!!!
0 Comment(s)