Home > DeveloperSection > Forums > Implement Status bar and Navigation Bar on top of UIView
zack mathews
zack mathews

Total Post:23

Points:161
Posted on    September-29-2015 1:35 AM

 iPhone iPhone  Ios  Objective C 
Ratings:


 1 Reply(s)
 370  View(s)
Rate this:

My problem is with the status bar and navigation bar, I am unable to came both on top of UIView.
how can i implement both in a proper way, Please help me to over come this problem?



Tarun Kumar

Total Post:213

Points:1635
Posted on    September-29-2015 11:28 PM

If you are using translucent status bar and a translucent navigation bar then your problem’s solution is here:
To set the status bar use:

[[UIApplication sharedApplication] setStatusBarStyle:
                                   UIStatusBarStyleBlackTranslucent];

To set the navigation bar use:

theNavigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;

Modified On Sep-29-2015 11:30:35 PM

Don't want to miss updates? Please click the below button!

Follow MindStick