Remove launch screen, Xcode 7

試著忘記壹切 提交于 2019-12-30 17:41:10

问题


I can find a bunch of answers from pre-2014 about removing the launch/splash screen by removing the line "Launch screen interface file base name", but in this project on Xcode 7, there is no such line in my info tab.

Is there any way to remove the launch/splash screen in another way in Xcode 7? This is in Objective-C by the way.


回答1:


Contrary to an answer I received, you CAN disable the splash/launch screen. To do so:

  1. click on your project

  2. go to General

  3. scroll down to App Icons and Launch Images
  4. Change "Launch Screen File" to whatever your first view controller is, i.e. MainViewController

Your first view controller will now display instead of the Launch Image.




回答2:


You can open XCode and try this:




回答3:


You need to create a storyboard (not a xib file) and then add it to Launch Screen File. Then you can have your custom splash view controller inside it.

Remember to mark your splash view controller as Is Initial View Control.



来源:https://stackoverflow.com/questions/37975826/remove-launch-screen-xcode-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!