当前位置:网站首页>Set status bar style demo

Set status bar style demo

2022-07-06 21:58:00 Full stack programmer webmaster

Hello everyone , I meet you again , I'm the king of the whole stack .

The effect achieved :

The color changes from black to white

// Set the style of the status bar

– (UIStatusBarStyle)preferredStatusBarStyle

{

returnUIStatusBarStyleLightContent;

}

// changes navigationBar The color of the

self.navigationBar.barTintColor = [UIColor colorWithRed:79 / 255.0 green:195 / 255.0 blue:137 / 255.0 alpha:1.0];

// changes navigationBar The rendering color of the content on

self.navigationBar.tintColor = [UIColorwhiteColor];

such as : The original picture is :

Formatted As shown in the picture

// changes navigationBar The rendering color of the content on

self.navigationBar.tintColor = [UIColor whiteColor];

Copyright notice : This article is the original article of the blogger . Blog , Do not reprint without permission .

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/117063.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061343425906.html