zoukankan      html  css  js  c++  java
  • Navigationbar 右侧按钮

    UIBarButtonItem *updateButton = [[UIBarButtonItem alloc] initWithTitle:@"修改" style:UIBarButtonItemStylePlain target:self action:@selector(updateInfo)];

        self.navigationItem.rightBarButtonItem = updateButton;

    navigationbar 左侧按钮

     self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"首页"style:UIBarButtonItemStyleBordered target:self action:@selector(popToRootView)] 

                                                 autorelease];

        self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"测试"style:UIBarButtonItemStyleBordered target:self action:@selector(test)] 

                                                  autorelease];

    }

    - (void)popToRootView

    {

        [self.navigationController popToRootViewControllerAnimated:YES];

    }

  • 相关阅读:
    [HNOI2002]营业额统计 (Splay)
    [POJ1664] 放苹果 (动态规划,组合数学)
    [AHOI2009]维护序列 (线段树)
    类型转换求和
    懒人创造方法
    编程的精义
    10-instanceof
    9-接口
    6-SUPER关键字
    5-重写与重载
  • 原文地址:https://www.cnblogs.com/aiwoqu/p/4624175.html
Copyright © 2011-2022 走看看