1.forEach:遍历
特殊函数,不需要写func关键字
2.UIViewController
1). Info.plist:需要加载的Storyboard文件
2).AppDelegate.swift:didFinishLaunching...启动完成
3). 选择 Storyboard中的入口界面加载(ViewController.swift)
4).加载完成:viewDidLoad
4.不使用Storyboard (main.storyboard删去,只留下LaunchScreen.storyboard)
1).Info.plist
2).didFinishLaunching...启动完成
3).代码加载窗口和页面(在AppDelegate.swift-->didFinishLaunching...启动完成)
5.总结:1).LaunchScreen.storyboard为闪屏页面
2).删除main.storyboard会在Info.plist发现
3).Info.plist -->AppDelegate.swift -->main.storyboard-->ViewController.swift
第一个界面在viewDidLoad