zoukankan      html  css  js  c++  java
  • UINavigationController 操作记录

          //设置字体大小 颜色

        {

            UIColor *color = [UIColor brownColor];

            UIFont * font = [UIFont systemFontOfSize:20];

            NSDictionary * dict = [NSDictionary dictionaryWithObjects:@[color,font] forKeys:@[NSForegroundColorAttributeName ,NSFontAttributeName]];

            self.navigationController.navigationBar.titleTextAttributes = dict;

        }

        

        //设置左右按钮

        {

            UIBarButtonItem * leftBtn = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"leftBarItem"] style:UIBarButtonItemStyleDone target:self action:@selector(leftClicked)];

            [self.navigationItem setLeftBarButtonItem:leftBtn];

            

            UIBarButtonItem * rightBtn = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"rightBarItem"] style:UIBarButtonItemStyleDone target:self action:@selector(rightClicked)];

            [self.navigationItem setRightBarButtonItem:rightBtn];

     

        }

        //设置背景颜色

        {

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

        }

  • 相关阅读:
    一步一步CCNA之二:路由器特权模式
    uncompress bz2
    Protothreads Lightweight, Stackless Threads in C
    sohu的正版美剧都挺不错的
    Ebot crawler
    大数据时代的创新者们
    technology company
    slogan
    娱乐新闻都怎么搞的,真不给力啊
    售楼小姐比较漂亮
  • 原文地址:https://www.cnblogs.com/rollrock/p/4724749.html
Copyright © 2011-2022 走看看