swift 导航的使用

导航还是有必要来搞一下的!!!!!

这只是一些基本的导航的使用。。。。。感兴趣的猿可以自己去

废话不多   源码奉上   ⬇️

首先  delegate里面

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool{}方法里  

swift 导航的使用

   self.window = UIWindow(frame: UIScreen.mainScreen().bounds)

        self.window!.backgroundColor = UIColor.whiteColor()

        self.window!.makeKeyAndVisible()

        let vc = OneTestViewController(nibName: nil,bundle: nil)

        let navi = UINavigationController(rootViewController:vc)

        self.window!.rootViewController = navi

在OneTestController里

swift 导航的使用

在TwoTestController 里

swift 导航的使用

swift 导航的使用

运行效果图

swift 导航的使用