1、首先要創建一個Single View Application工程。
2、把工程目錄中原生的ViewController和Main.storyboard刪除,扔進廢紙簍。
3、然後打開工程項目屬性文件,點擊Target下面的第一項,再選擇General選項卡,向下找到Deployment Info選項下的Main Interface刪除Main。
4、新建一個ViewController作爲RootViewController。
4、在APPDelegate中設置Window對象以及根視圖控制器。