当前位置:网站首页>Swift navigation bar color device and remove the lower edge line
Swift navigation bar color device and remove the lower edge line
2022-07-21 20:42:00 【ruglcc】
Custom navigation controller
class RcNavigationController: UINavigationController {
override func viewDidLoad() {
super.viewDidLoad()
// Set navigation bar color
self.navigationBar.barTintColor = UIColor.red
self.navigationBar.isTranslucent = false
// Remove the lower edge line
self.navigationBar.setBackgroundImage(UIImage(), for: .default)
self.navigationBar.shadowImage = UIImage()
}
}
边栏推荐
猜你喜欢
随机推荐
User defined MVC addition, deletion, modification and query
Dynamically listen for the height of DOM elements
Flutter报错总结:There are multiple heroes that share the same tag within a subtree.
SimpleDateFormat正确使用
window.history.back();在返回后layer无法关闭的问题
General paging 01
MySQL之函数
通用分页01
第五局 阿卡丽教学局 上半场数据分析
C语言实现三子棋小游戏---格局打开版(
MySQL import and export & View & Index & execution plan
sonarLint使用、介绍
自定义MVC原理
1.vite初识、vite搭建项目
[c language] light rises in the dull days, the initial stage and the final battle
How to play FLV format videos locally for free
First Working Day~
Output statements on the console
[C语言] 选择 循环还可以这样玩 代码表白光之国
Upload pictures and avatars