首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏码客

    iOS状态栏设置

    UINavigationBar.appearance(); //在早期版本上设置 不能全局的方式设置 会导致app崩溃 //appear.translucent = false; //设置bar的颜色 appear.barTintColor = UIColor(red: 52/255, green: 146/255, blue: 233/255, alpha: 1.0); //设置背景色(不透明时没用,因为barTintColor在backgroundColor ; 注意 1) appear.translucent配置在早期系统会崩溃,不建议配置,建议在ViewController中配置 2) 在translucent=true也就是透明时,barTintColor 不起作用,backgroundColor起作用 3) 在translucent=false也就是不透明时,barTintColor起作用,backgroundColor不起作用 4) 在translucent

    3.6K11发布于 2019-10-22
  • 来自专栏码客

    iOS各View的属性设置

    UINavigationBar.appearance(); //设置Item的样式 appear.tintColor = UIColor.whiteColor(); //设置bar的颜色 appear.barTintColor = UIColor(red: 39/255, green: 157/255, blue: 244/255, alpha: 1.0); //设置背景色(不透明时没用,因为barTintColor在backgroundColor UINavigationBar *appear = [UINavigationBar appearance]; appear.tintColor = [UIColor clearColor]; appear.barTintColor searchBarAppear.backgroundColor = UIColor.clearColor(); searchBarAppear.tintColor = ZJ_Color.天空蓝; searchBarAppear.barTintColor

    2K20发布于 2019-10-22
  • 来自专栏iOS开发~

    ReactNative_react-native-vector-icons的简单使用,图片,按钮,标签视图,导航条

    Text> </Icon.Button> <TabBarIOS //和标签视图一起使用 tintColor="#4977f0" barTintColor NavigatorIOS //导航栏 style={styles.container} tintColor='#FFFFFF' barTintColor <NavigatorIOS style={styles.container} tintColor='#FFFFFF' barTintColor

    1.9K20编辑于 2022-07-20
  • 来自专栏iOS 备忘录

    iOS 15导航栏设置

    --more--> 修改 设置方法需修改,参考barTintColor not working in iOS 15 原来设置导航栏代码不变,新增设置UINavigationBarAppearance实例对象的属性 参考 How to hide UINavigationBar 1px bottom line navigationBar setBackgroundImage not working on iOS15 barTintColor

    2.2K20发布于 2021-09-03
  • 来自专栏sktj

    IOS 读取设备中的所有照片

    = UIImagePickerControllerSourceType.photoLibrary 22 23 self.imagePickerController.navigationBar.barTintColor self 26 self.imagePickerController.allowsEditing = true 27 self.imagePickerController.navigationBar.barTintColor

    1.7K30发布于 2019-07-10
  • 来自专栏iOSer

    iOS13 关闭黑暗模式+状态栏显示问题解决方法

    特殊情况(暗色系导航栏) 如果项目中有更改系统导航栏背景色,比如下面代码: self.navigationController.navigationBar.barTintColor = [UIColor blackColor]; //barTintColor 设置时,系统会自动把导航栏设置为半透明,若不想要半透明效果,需要设置 translucent 为 NO self.navigationController.navigationBar.translucent

    2.6K10发布于 2020-09-04
  • 来自专栏KyXu

    【iOS开发】全局设定 UINavigationBar 的 UI

    globalBarTintColor是我自定义的浅海蓝色,后面还会出现) self.tabBar.tintColor = UIColor.whiteColor() self.tabBar.barTintColor titleTextAttributes = [NSForegroundColorAttributeName:UIColor.whiteColor()] UINavigationBar.appearance().barTintColor

    1K20发布于 2019-04-11
  • 来自专栏向治洪

    React-Native组件之 TabBarIOS和TabBarIOS.Item

    TabBarIOS 常见属性 继承了View的所有属性 barTintColor:标签栏的背景颜色 tintColor:当前被选中的标签图标颜色 translucent:bool值,决定标签栏是否需要半透明化 角标 <TabBarIOS style={{height:49, width: width}} tintColor="green" barTintColor="black style={{height:49, width: width}} tintColor="green" barTintColor

    1.3K100发布于 2018-02-06
  • 来自专栏MapleYe

    【iOS】仿知乎日报,RxSwift-Part1-首页搭建

    设置代码如下: 获取导航栏的背景图,用于滚动时修改颜色和透明图 设置barTintColor为蓝色 设置barTintColor为白色 barImg = (navigationController?. navigationBar.barTintColor = UIColor.rgb(63, 141, 208) navigationController?.

    2.9K10发布于 2020-03-30
  • 来自专栏娱乐心理测试

    UIImagePickerController的中文界面和改变statusBar的颜色

    self.pickerViewController.navigationBar.barStyle = UIBarStyleBlackTranslucent; self.pickerViewController.navigationBar.barTintColor self.pickerViewController.navigationBar.barStyle = UIBarStyleBlackTranslucent; self.pickerViewController.navigationBar.barTintColor

    2.4K40发布于 2018-06-04
  • 来自专栏码客

    iOS常用代码段

    appear.translucent = false; //设置Item的样式 appear.tintColor = UIColor.whiteColor(); //设置bar的颜色 appear.barTintColor = UIColor(red: 52/255, green: 146/255, blue: 233/255, alpha: 1.0); //设置背景色(不透明时没用,因为barTintColor在backgroundColor searchBarAppear.backgroundColor = UIColor(red: 240/255, green: 240/255, blue: 240/255, alpha: 1.0); searchBarAppear.barTintColor

    1.2K20发布于 2019-10-22
  • 来自专栏全栈程序员必看

    设置状态栏样式Demo

    preferredStatusBarStyle { returnUIStatusBarStyleLightContent; } //改动navigationBar的颜色 self.navigationBar.barTintColor

    61220编辑于 2022-07-06
  • 来自专栏ppppy_oschina

    iOS 原生导航栏 修改导航栏文字颜色 大小

    self.navigationController.navigationBar.barStyle = UIBarStyleBlack; self.navigationController.navigationBar.barTintColor

    4.3K50编辑于 2022-11-15
  • 来自专栏Objective-C

    iOS-UINavigationBar 设置背景颜色及标题

    手动设置背景色及标题 UINavigationBar *navBar = [UINavigationBar appearance]; navBar.barTintColor = [UIColor

    4.2K40发布于 2018-05-10
  • 来自专栏码客

    iOS项目常用配置项

    appear.isTranslucent = false; //设置Item的样式 appear.tintColor = UIColor.white; //设置bar的颜色 appear.barTintColor = ZJColor.mainColor; //设置背景色(不透明时没用,因为barTintColor在backgroundColor的上一层) appear.backgroundColor

    1.3K30发布于 2019-10-21
  • 来自专栏一“技”之长

    iOS开发UINavigation系列一——导航栏UINavigtionBar

    @property(nullable, nonatomic,strong) UIColor *barTintColor; BarTintColor用于设置导航栏的背景色,这个属性被设置后,半透明的效果将失效

    1.7K31发布于 2018-08-15
  • 来自专栏大宇笔记

    导航栏搜索框简单封装

    barTintColor = UIColor.clear if let textfiled = searchBar?.subviews.first?.

    1.6K20发布于 2019-10-25
  • 来自专栏LinXunFeng的专栏

    iOS - Swift UISearchController仿微信搜索框

    上面仅作演示,下面的代码为searchBar的主要设置 let commonBgColor = RGBA(r: 0.94, g: 0.94, b: 0.96, a: 1.00) searchBar.barTintColor

    2.3K30发布于 2018-06-29
  • 来自专栏一“技”之长

    iOS开发UINavigation系列三——工具栏UIToolBar

    null_resettable, nonatomic,strong) UIColor *tintColor; //设置工具栏背景色 @property(nullable, nonatomic,strong) UIColor *barTintColor

    88410发布于 2018-08-15
  • 来自专栏Scott_Mr 个人专栏

    React Native 系列(九) -- Tab标签组件

    TabBarIOS 常用属性 barTintColor string:标签栏的背景颜色。 style:样式 tintColor string: 当前被选中的标签图标的颜色。 直接创建一个TabBarIOS组件: render() { return ( <TabBarIOS tintColor='orange' barTintColor Tab的代码就应该是这样: render() { return ( <TabBarIOS tintColor='orange' barTintColor

    7.4K90发布于 2018-05-16
领券