暂无描述

NavigationControllerDelegate.swift 1.6KB

    // // NavigationControllerDelegate.swift // PaiaiUIKit // // Created by ffib on 2019/1/16. // Copyright © 2019 yb. All rights reserved. // import Foundation public protocol NavigationControllerDelegate: class { func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationController.Operation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? } public extension NavigationControllerDelegate { func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {} func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {} func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationController.Operation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? { return nil } }