zoukankan      html  css  js  c++  java
  • 设置导航条的颜色

    [self.navigationController.navigationBar setBackgroundColor:[UIColor colorWithPatternImage:kHelper_Image(@"titlebar")]];

        [self.navigationController.navigationBar setBackgroundImage:kHelper_Image(@"titlebar") forBarMetrics:UIBarMetricsDefault];

        [self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];

       

         设置TabBar的颜色

        [self.tabBarController.tabBar setBackgroundImage:kHelper_Image(@"titlebar")];

        [self.tabBarController.tabBar setTintColor:[UIColor whiteColor]];

       

         设置状态的的颜色

        [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

        [self.navigationController.navigationBar setBarTintColor:[UIColor whiteColor]];

        [self setNeedsStatusBarAppearanceUpdate];

       

         设置状态条的颜色

        UIImageView *bgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, -20, self.view.frame.size.width, 20)];

        bgView.backgroundColor = [UIColor colorWithPatternImage:kHelper_Image(@"titlebar")];

        [self.navigationController.navigationBar addSubview:bgView];

  • 相关阅读:
    linux kernel ftrace 之wakeup tracer and wakeup_rt tracer
    urb传输的代码分析
    open/ioctl in kernel
    淺談C51記憶體優化(data idata xdata)
    8051 XDATA
    Android.bp
    android bionic
    echo +80 > /sys/class/rtc/rtc0/wakealarm
    高清地图下载
    更新和删除数据
  • 原文地址:https://www.cnblogs.com/zhaozhongpeng/p/4867913.html
Copyright © 2011-2022 走看看