原因好像是有 storyboard ,把里面的controller设置为了入口,但是在appdelegate里又自己写了入口。这样启动app的时候就会出现两个window。
解决方法除了这个还可以把storyboard里的 Is Initial View Controller取消或者删除plist中的Main storyboard file base name
如果有main.storyboard的话 把info.plist 里的Main storyboard file base name 删掉!!!
试一下 就可以了应该