ProHUD/Example-Old/Example/RootVC.swift

41 lines
1.0 KiB
Swift

//
// RootVC.swift
// Example
//
// Created by xaoxuu on 2019/8/12.
// Copyright © 2019 Titan Studio. All rights reserved.
//
import UIKit
class RootVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
let vc = ViewController()
let nav = UINavigationController(rootViewController: vc)
addChild(nav)
view.addSubview(nav.view)
nav.view.frame = view.bounds
if #available(iOS 11.0, *) {
nav.navigationBar.prefersLargeTitles = true
} else {
// Fallback on earlier versions
}
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}