zoukankan      html  css  js  c++  java
  • ios导航条添加按钮

    UIBarButtonItem *btnSave = [[UIBarButtonItem alloc]
                                        initWithTitle:@"Save"                                            
                                        style:UIBarButtonItemStyleBordered
                                        target:self
                                     action:@selector(save_Clicked:)];
         self.navigationItem.rightBarButtonItem = btnSave;
         [btnSave release];

         UIBarButtonItem *btnCancel = [[UIBarButtonItem alloc]
                                        initWithTitle:@"Cancel"                                            
                                        style:UIBarButtonItemStyleBordered
                                        target:self
                                        action:@selector(save_Clicked)];
         self.navigationItem.leftBarButtonItem = btnCancel;
         [btnCancel release];

  • 相关阅读:
    数学学习合集
    萌萌的网络流~~
    2014西安全国邀请赛
    好题、趣题、麻烦题
    单调栈与单调队列
    字符串习题
    计算几何
    summer 2014 校队训练 嗷嗷待补之题
    2014多校联合训练第一场(组队训练)
    summer 2014 Round 4 解题报告
  • 原文地址:https://www.cnblogs.com/mazhiyong/p/2542080.html
Copyright © 2011-2022 走看看