UI开发 7.27
1.Info.plist: 需要记载的Storyboard文件名
2.AppDelegate.swift: didFinishLaunching...启动完成
3.选择Storyboard中的入口界面加载(ViewController.swift)
4.加载完成:ViewDidLoad
不使用Storyboard
1.Info.plist
2.didFinishLaunching:...启动完成
3.代码加载窗口和页面
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
//(0, 0, 屏幕宽度,屏幕高度)
let rect = UIScreen.mainScreen().bounds
self.window = UIWindow(frame: rect)
let viewCtrl = ViewController()
//设置要显示第一个界面
self.window?.rootViewController = viewCtrl
//显示窗口
self.window?.makeKeyAndVisible()