新建方式参考:http://www.jb51.cc/article/p-xhhzmpze-rc.html
**右侧底部筛选为:**UINavigationController
新建后台代码参考:http://www.jb51.cc/article/p-xhhzmpze-rc.html
后台代码继承原为:UIViewController ,改为 UINavigationController
import UIKit
class FourViewController: UINavigationController {
override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view,typically from a nib. print("Four"); } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. }
}
为这个新建视图,关联Class
启动模拟器,运行