zoukankan      html  css  js  c++  java
  • 关于navigation的一些属性设置

        self.title=@"糗事百科";

        

        

        UIBarButtonItem *item=[[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStyleDone target:self action:nil];

        self.navigationItem.leftBarButtonItem=item;

        

         UIBarButtonItem *right=[UIBarButtonItem itemWithImageName:@"top_title_button_transpond-normal" highImageName:@"top_title_button_transpond_press" target:self action:@selector(leftbuttonClick:)];

        

        

    //    

    //    UIBarButtonItem *left=[UIBarButtonItem itemWithImageName:@"top_title_button_return_normal" highImageName:@"top_title_button_return_press" target:self action:@selector(leftbuttonClick:)];

    //    

    //    

    //    self.navigationItem.leftBarButtonItem=left;

        self.navigationItem.rightBarButtonItem=right;

    //    

    //    

    //    UIImageView *center=[[UIImageView alloc] init];

    //    //

    //    

    //   UIImage *image=[UIImage imageNamed:@"top_title_button_transpond-normal"];

    //    center.image=image;

    //    

    //    center.frame=CGRectMake(0, 0, image.size.width, image.size.height);

    //    

    //    self.navigationItem.titleView=center;

    //    

    //    

    //    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"bar_background"] forBarMetrics:UIBarMetricsDefault];

  • 相关阅读:
    C# 监测每个方法的执行次数和占用时间(测试1)
    C# 依赖注入那些事儿
    SQL Server GROUP BY 后 拼接 字符串
    C# 根据Excel生成树
    C# 反射赋值
    C# 集合转换为DataTable
    Oracle 未能加载文件或程序集Oracle.DataAccess
    MySQL 各种主流 SQLServer 迁移到 MySQL 工具对比
    平衡树
    数据结构优化dp
  • 原文地址:https://www.cnblogs.com/zhibin/p/4156655.html
Copyright © 2011-2022 走看看