• navigation添加右侧可编辑或者删除按钮


      

        //navigation添加右侧可编辑或者删除按钮

        UIBarButtonItem *editButton = [[UIBarButtonItemalloc ]

                                       initWithTitle:@"Delete" 

                                       style:UIBarButtonItemStyleBordered 

                                       target:self

                                       action:@selector(toggleEdit:)];

        self.navigationItem.rightBarButtonItem = editButton;

        

        [editButton release];

  • 相关阅读:
    python-04
    python-03
    python-02
    python-01
    day4-RHCS
    python 之元组(tuple)
    11.21
    python之猜数小游戏
    python之简陋的数据库
    11.20
  • 原文地址:https://www.cnblogs.com/zander/p/2591151.html
Copyright © 2020-2023  润新知