Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Simple way to change status bar

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 326
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: