• navigationController背景图,文字,事件定义


    //设置背景图片

    [self.navigationController.navigationBar setBackgroundImage:imag forBarMetrics:UIBarMetricsDefault];

    //button 定义你要的背景 文字 或 事件

     UIBarButtonItem *leftBarButton = [[UIBarButtonItem alloc] initWithCustomView:button];

     self.navigationItem.leftBarButtonItem = leftBarButton;

     [leftBarButton release];

    具体实现:

    [self.navigationItem setTitle:@"通知详情"];

        //self.navigationController.navigationBarHidden = NO;

        [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"root_top.png"] forBarMetrics:UIBarMetricsDefault];

        self.navigationItem.hidesBackButton = YES;

        

        UIButton *rightButton = [[UIButton alloc]initWithFrame:CGRectMake(SCREEN_WIDTH - 70, 10, 70, rootTopHeight - 20)];

        [rightButton addTarget:self action:@selector(NoticeBackAction) forControlEvents:UIControlEventTouchUpInside];

        [rightButton setBackgroundImage:[UIImage imageNamed:@"root_back.png"] forState:UIControlStateNormal];

        [rightButton setTitle:@"退出" forState:UIControlStateNormal];

        UIBarButtonItem *rightBarButton = [[UIBarButtonItem alloc]initWithCustomView:rightButton];

        self.navigationItem.rightBarButtonItem = rightBarButton;

  • 相关阅读:
    信息增益(Information Gain)(转)
    数据挖掘潜规则zz
    Google AdWords 广告排名首选项
    看图说话:关于BI那点事儿
    BI实施的四个层次
    10个有用的数据可视化资源
    数据可视化六步法
    数据仓库构建步骤
    关于javascript中对浮点加,减,乘,除的精度分析
    AMD规范与CMD规范的区别
  • 原文地址:https://www.cnblogs.com/littlewrong/p/4909015.html
Copyright © 2020-2023  润新知