Swift - Execute code on LaunchScreen [duplicate]
问题 This question already has answers here : iOS Launch screen code not running (2 answers) Closed 5 years ago . In iOS there is an LaunchScreen before you're app is ready. Can you add things to do (Code) to this? I want to execute a JSON request on LaunchScreen but have no idea where to put the code. Thanks In Advance, Kaaseter 回答1: As you wrote, LaunchScreen is there before your app is ready and it implies that you can't execute your code in this time. To achieve something similar, copy & paste