zoukankan      html  css  js  c++  java
  • iOS 设置导航栏透明

        //设置导航栏透明
        [self.navigationController.navigationBar setTranslucent:true];
        //把背景设为空
        [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
        //处理导航栏有条线的问题
        [self.navigationController.navigationBar setShadowImage:[UIImage new]];
    //1。
    [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];//设置NavigationBar上的title的颜色
    //2.
    [self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];

    //视图将要出现,隐藏导航栏

    -(void)viewWillAppear:(BOOL)animated

    {

        [super viewWillAppear:animated];

        [self.navigationController setNavigationBarHidden:YES];

    }


  • 相关阅读:
    三维dem
    geoserver 通过代码实现发布地图服务
    restful发布服务
    php防攻击
    redis主从复制
    redis虚拟内存
    redis 持久化
    lamp源码安装
    mysql优化
    php匿名函数与闭包函数
  • 原文地址:https://www.cnblogs.com/gaozhang12345/p/9671113.html
Copyright © 2011-2022 走看看