当前位置:网站首页>设置状态栏样式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
边栏推荐
- Tiktok will push the independent grass planting app "praiseworthy". Can't bytes forget the little red book?
- make menuconfig出现recipe for target ‘menuconfig‘ failed错误
- Run the deep network on PI and Jetson nano, and the program is killed
- JS学习笔记-OO创建怀疑的对象
- Redistemplate common collection instructions opsforlist (III)
- ViT论文详解
- [interpretation of the paper] machine learning technology for Cataract Classification / classification
- [asp.net core] set the format of Web API response data -- formatfilter feature
- C语言:#if、#def和#ifndef综合应用
- Search map website [quadratic] [for search map, search fan, search book]
猜你喜欢
Earned value management EVM detailed explanation and application, example explanation
对话阿里巴巴副总裁贾扬清:追求大模型,并不是一件坏事
ViT论文详解
Numpy download and installation
Method return value considerations
Digital transformation takes the lead to resume production and work, and online and offline full integration rebuilds business logic
袁小林:安全不只是标准,更是沃尔沃不变的信仰和追求
Yyds dry goods inventory C language recursive implementation of Hanoi Tower
Michael smashed the minority milk sign
It's not my boast. You haven't used this fairy idea plug-in!
随机推荐
[Li Kou brushing questions] one dimensional dynamic planning record (53 change exchanges, 300 longest increasing subsequence, 53 largest subarray and)
C how to set two columns comboboxcolumn in DataGridView to bind a secondary linkage effect of cascading events
1292_FreeROS中vTaskResume()以及xTaskResumeFromISR()的实现分析
Yuan Xiaolin: safety is not only a standard, but also Volvo's unchanging belief and pursuit
From campus to Tencent work for a year of those stumbles!
Realization of epoll reactor model
Record the process of cleaning up mining viruses
互联网快讯:吉利正式收购魅族;胰岛素集采在31省全面落地
Fzu 1686 dragon mystery repeated coverage
b站视频链接快速获取
Guava: use of multiset
npm run dev启动项目报错 document is not defined
The relationship between root and coefficient of quadratic equation with one variable
Sdl2 source analysis 7: performance (sdl_renderpresent())
It's not my boast. You haven't used this fairy idea plug-in!
Quick access to video links at station B
Absolute primes (C language)
[Chongqing Guangdong education] Tianjin urban construction university concrete structure design principle a reference
Intelligent online customer service system source code Gofly development log - 2 Develop command line applications
Hill | insert sort