zoukankan      html  css  js  c++  java
  • 常用的语句

    导航栏的隐藏

    self.navigationController.navigationBarHidden = YES;

    [self.navigationController setNavigationBarHidden:YES animated:YES];

     这个改变所有的 导航栏的属性 一般写在 appDelegate 中

    [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:kColorWhite ,NSFontAttributeName:[UIFont systemFontOfSize:20.f]}];

    设置单个导航栏的 标题属性

    [self.navigationController.navigationBar setTitleTextAttributes:

         @{NSFontAttributeName:[UIFont systemFontOfSize:15],

           NSForegroundColorAttributeName:kColorBlack}];

    设置导航栏的 背景图片

        [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"nav_bar3"] forBarMetrics:UIBarMetricsDefault];

      [[UINavigationBar appearance] setShadowImage:[UIImage alloc]];

    [[UINavigationBar appearance] setTintColor:kColorWhite];

    导航栏自定义view

    self.navigationItem.titleView = titleBtn;

        [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

    底部tabbar 隐藏

    self.tabBarController.tabBar.hidden = YES;

    _pageCountrol的圆点图片

    [_pageCountrol setValue:[UIImage imageNamed:@"icon_circle1"] forKey:@"_currentPageImage"];

      [_pageCountrol setValue:[UIImage imageNamed:@"icon_circle2"] forKey:@"_pageImage"];

  • 相关阅读:
    python文件、文件夹操作OS模块
    python字符串
    python集合set
    多市场交易碎片交易
    基金公司主要系统
    高频交易:Solarflare组建超低延迟网络
    上交所技术前沿
    高频交易低延迟:信鸽、100微妙和恒生的纳秒试验
    解密PB
    解密HOMS
  • 原文地址:https://www.cnblogs.com/isItOk/p/4735039.html
Copyright © 2011-2022 走看看