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];

  • 相关阅读:
    性能优化方法
    JSM的topic和queue的区别
    关于分布式事务、两阶段提交协议、三阶提交协议
    大型网站系统与Java中间件实践读书笔记
    Kafka设计解析:Kafka High Availability
    kafka安装和部署
    String和intern()浅析
    JAVA中native方法调用
    Java的native方法
    happens-before俗解
  • 原文地址:https://www.cnblogs.com/mazhiyong/p/2542080.html
Copyright © 2011-2022 走看看