swift 使用xib布局創(chuàng)建帶有xib的ViewController
1. 在AppDelegate 引用創(chuàng)建的ViewController
image
2. 點(diǎn)擊項(xiàng)目選擇general 設(shè)置main interface 為空 設(shè)置 lauch Screen file 為啟動(dòng)的ViewController 的XIb
3. 刪除對(duì)應(yīng)的默認(rèn)創(chuàng)建的ViewController 和main.Storyboard 和lauch screen file
image