-1

Hi i am new for ios and in my viewController i have hidden NavigationBar

here i want to change simulator Network symbol and Time and Charger indicator colors in my app

please help how can we do this i tried some code but not working

code:-

- (void)viewDidLoad {
  [super viewDidLoad];

  UINavigationBar *navigationBar      = [UINavigationBar appearance];
  navigationBar.tintColor             = [UIColor whiteColor];
  self.navigationController.navigationBarHidden = YES;
}
Mihriban Minaz
  • 3,043
  • 2
  • 32
  • 52
AbhiRam
  • 2,033
  • 7
  • 41
  • 94
  • 1
    Possible duplicate of [How to change Status Bar text color in iOS 7](http://stackoverflow.com/questions/17678881/how-to-change-status-bar-text-color-in-ios-7) – Vineet Choudhary Mar 04 '16 at 12:18
  • Possible duplicate of [How to change the UIStatus bar color?](http://stackoverflow.com/questions/3762013/how-to-change-the-uistatus-bar-color) – Mihriban Minaz Mar 04 '16 at 13:59

1 Answers1

1

Step 1:

Open the info.plist file of your app and set the UIViewControllerBasedStatusBarAppearance to NO

Step 2: Next, in your AppDelegate.m, add this:

  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
     [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
} 

Choice-2

First, Go to Project -> Target,

Then set Status Bar Style to Light Project Setting

and then set View controller-based status bar appearance equal to NO in Info.plist.

Community
  • 1
  • 1
Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143