1
votes

I integrate Google sign SDK into my app. But I don't know how to change color of status bar and bar tint color of navigation bar also. I tried to change the colors with [[UITabBar appearance] setBarTintColor] and [[UIApplication sharedApplication] setStatusBarStyle] from appdelegate, but nothing happened. I really need the help from you. Thanks.

1
Make a custom view for status bar and then change the color of it.Dishant Rajput

1 Answers

0
votes

Custom status bar

UIView *addStatusBar = [[UIView alloc] init];
addStatusBar.frame = CGRectMake(0, 0, self.view.frame.size.width, 20);
addStatusBar.backgroundColor = //yourColor;
[self.view addSubview:addStatusBar];