当前位置:网站首页>设置状态栏样式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
边栏推荐
- Caching strategies overview
- JS learning notes OO create suspicious objects
- Acdreamoj1110 (multiple backpacks)
- Reinforcement learning - learning notes 5 | alphago
- 关于char[]数组通过scanf赋值使用上的一些问题。。
- Why rdd/dataset is needed in spark
- Fastjson parses JSON strings (deserialized to list, map)
- Web开发小妙招:巧用ThreadLocal规避层层传值
- string的底层实现
- 在最长的距离二叉树结点
猜你喜欢
[Li Kou brushing questions] one dimensional dynamic planning record (53 change exchanges, 300 longest increasing subsequence, 53 largest subarray and)
Summary of cross partition scheme
袁小林:安全不只是标准,更是沃尔沃不变的信仰和追求
1292_FreeROS中vTaskResume()以及xTaskResumeFromISR()的实现分析
50 commonly used numpy function explanations, parameters and usage examples
对话阿里巴巴副总裁贾扬清:追求大模型,并不是一件坏事
guava:Collections.unmodifiableXXX创建的collection并不immutable
MPLS experiment
Numpy download and installation
Reptile practice (V): climbing watercress top250
随机推荐
对话阿里巴巴副总裁贾扬清:追求大模型,并不是一件坏事
[Yu Yue education] higher mathematics of Nanchang University (2) reference materials
Five wars of Chinese Baijiu
MPLS experiment
Quick news: the flybook players' conference is held online; Wechat payment launched "education and training service toolbox"
Run the deep network on PI and Jetson nano, and the program is killed
50 commonly used numpy function explanations, parameters and usage examples
Replace Internet TV set-top box application through digital TV and broadband network
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
Comparison between multithreaded CAS and synchronized
mysql根据两个字段去重
50个常用的Numpy函数解释,参数和使用示例
Aggregate function with key in spark
Sparkshuffle process and Mr shuffle process
在最长的距离二叉树结点
一行代码可以做些什么?
Fzu 1686 dragon mystery repeated coverage
Numpy download and installation
中国白酒的5场大战
[interpretation of the paper] machine learning technology for Cataract Classification / classification