当前位置:网站首页>设置状态栏样式Demo
设置状态栏样式Demo
2022-07-06 13:45:00 【全栈程序员站长】
大家好,又见面了,我是全栈君。
达到的效果:
色有黑色变为了白色
//设置状态条的样式
– (UIStatusBarStyle)preferredStatusBarStyle
{
returnUIStatusBarStyleLightContent;
}
//改动navigationBar的颜色
self.navigationBar.barTintColor = [UIColor colorWithRed:79 / 255.0 green:195 / 255.0 blue:137 / 255.0 alpha:1.0];
//改动navigationBar上内容的渲染颜色
self.navigationBar.tintColor = [UIColorwhiteColor];
比如:原图片是:
经过设置格式 如图效果
//改动navigationBar上内容的渲染颜色
self.navigationBar.tintColor = [UIColor whiteColor];
版权声明:本文博主原创文章。博客,未经同意不得转载。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/117063.html原文链接:https://javaforall.cn
边栏推荐
- document. Usage of write () - write text - modify style and position control
- Set up a time server
- R language for text mining Part4 text classification
- Absolute primes (C language)
- [Yu Yue education] reference materials for surgical skills teaching in Tongji University
- One line by line explanation of the source code of anchor free series network yolox (a total of ten articles, you can change the network at will after reading it, if you won't complain to me)
- 华为在多个行业同时出击,吓人的技术让欧美企业瑟瑟发抖
- 对话阿里巴巴副总裁贾扬清:追求大模型,并不是一件坏事
- MySQL - transaction details
- Replace Internet TV set-top box application through digital TV and broadband network
猜你喜欢

50个常用的Numpy函数解释,参数和使用示例

跨分片方案 总结

抖音將推獨立種草App“可頌”,字節忘不掉小紅書?

numpy 下载安装

一行代码可以做些什么?

Summary of cross partition scheme

Microsoft technology empowerment position - February course Preview

Internet News: Geely officially acquired Meizu; Intensive insulin purchase was fully implemented in 31 provinces

Caching strategies overview

20 large visual screens that are highly praised by the boss, with source code templates!
随机推荐
Why rdd/dataset is needed in spark
make menuconfig出现recipe for target ‘menuconfig‘ failed错误
[interpretation of the paper] machine learning technology for Cataract Classification / classification
Technology sharing | packet capturing analysis TCP protocol
14 years Bachelor degree, transferred to software testing, salary 13.5k
1D convolution detail
Caching strategies overview
R language for text mining Part4 text classification
Divide candy
mysql根据两个字段去重
Redistemplate common collection instructions opsforset (V)
C language: comprehensive application of if, def and ifndef
[Chongqing Guangdong education] Tianjin urban construction university concrete structure design principle a reference
语谱图怎么看
[Chongqing Guangdong education] Information Literacy of Sichuan Normal University: a new engine for efficiency improvement and lifelong learning reference materials
Guava: three ways to create immutablexxx objects
FZU 1686 龙之谜 重复覆盖
ROS error: could not find a package configuration file provided by "move_base“
Checkpoint of RDD in spark
In JS, string and array are converted to each other (I) -- the method of converting string into array