zoukankan      html  css  js  c++  java
  • ios


    1.

        override func viewDidLoad() {

            super.viewDidLoad()

            self.navigationController?.delegate = self

        }

    2. 实现代理方法

    // MARK: - 导航栏代理, 只在本页面隐藏 导航栏
    extension JYStaffListController:UINavigationControllerDelegate{
        func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {
            
            if viewController is JYStaffListController{
                self.navigationController?.navigationBar.shadowImage = UIImage.init(named: "testImage")
            }else{
                self.navigationController?.setupNewNav()
            }
        }
    }
    

      

  • 相关阅读:
    取消svn版本控制
    Sublime Text 2搭建Go开发环境(Windows)
    RESTful API 设计指南
    laravel-v5.1分页并带参数
    laravel使用的模板引擎 blade
    控制器中添加DB类才可以操作数据库表中的数据
    简单hello world
    创建控制器命令
    命令创建模型类
    IntelliJ IDEA类头注释和方法注释
  • 原文地址:https://www.cnblogs.com/qingzZ/p/9370576.html
Copyright © 2011-2022 走看看