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()
            }
        }
    }
    

      

  • 相关阅读:
    Java标签实现分页
    Servlet过滤器介绍之原理分析
    java超强分页标签演示
    Mybatis中resultMap与resultType区别
    洛谷 P1002 过河卒
    洛谷 P2181 对角线
    ACM常数优化
    2020 年百度之星·程序设计大赛
    AtCoder Beginner Contest 171 E
    AtCoder Beginner Contest 171 D
  • 原文地址:https://www.cnblogs.com/qingzZ/p/9370576.html
Copyright © 2011-2022 走看看