NAV

作者: Alan龙马 | 来源:发表于2017-05-20 11:54 被阅读20次

    文字按钮

    let editIte = UIBarButtonItem.init(title: "编辑", style: .plain, target: self, action: #selector(clickBtn))
    self.navigationItem.rightBarButtonItem = editIte
    
     @objc func clickBtn(_ sender:UIBarButtonItem){
     }
    

    视图推送

    let otherVC = PicSaveVC()
    self.navigationController?.pushViewController(otherVC , animated: true)
    
     _ = self.navigationController?.popViewController(animated: true)
    

    设置CGRectZero从导航栏下开始计算

     override func viewDidLoad() {
            super.viewDidLoad()
            self.view.backgroundColor = UIColor.white
            
            self.edgesForExtendedLayout = []
    
        }
    

    相关文章

      网友评论

          本文标题:NAV

          本文链接:https://www.haomeiwen.com/subject/hrxpxxtx.html