Xcode 11 删除Scenedelegate

  A few days ago, it's fine when a new project, find more of a Scenedelegate file. Baidu a little, ah, yes pad with a split screen. It seems to me that iOS phones and the development of small rookie with no eggs. Aside simply ignored.

  Today, as specified root view of the new project with the code you want to delete discovered Hey, even being given, what happened.

 

 

   In my impression is written so ah, checked Baidu, Baidu is so written. Written right ah.

  Later Baidu search of the investigation, asked a friend to ask around to find the original of this document is Scenedelegate do a ghost. If you want to specify the root view, it should be modified depending on the Scenedelegate in this document, instead of modifying our common Appdelegate years.

 

    The modified method shown in FIG.

 

 

   Later, we found a better way.

   1. First, delete the file Scenedelegate.

   2. Then delete the Application scene manifest in info.plist file.

 

   3. Remove the two methods of AppDelegate.

 

   4. Increase the window attribute Appdelegate.

 

 

 

  that's it.

Guess you like

Origin www.cnblogs.com/Lin-XianSheng/p/11821362.html