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

  • 相关阅读:
    varnish4.X安装
    关于varnish缓存
    s3cmd的使用
    MarkdownPad 2
    Lua控制语句
    Lua表达式
    后端怎么防止重复提交?(常用的做法)
    Redis用setnx+expire实现分布式锁存在什么隐患,如何改进?
    推送消息为什么使用RocketMQ,而不使用Kafka?
    自定义线程池,如何最佳创建线程池
  • 原文地址:https://www.cnblogs.com/mazhiyong/p/2542080.html
Copyright © 2011-2022 走看看