ProHUD/Example-Old/Example/RootVC.swift

41 lines
1.0 KiB
Swift
Raw Normal View History

2019-08-12 19:02:33 +08:00
//
// 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)
2020-06-16 16:50:53 +08:00
nav.view.frame = view.bounds
2020-06-15 18:58:13 +08:00
if #available(iOS 11.0, *) {
nav.navigationBar.prefersLargeTitles = true
} else {
// Fallback on earlier versions
}
2019-08-12 19:02:33 +08:00
}
/*
// 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.
}
*/
}