2
What’s the easiest way to make a splash screen on Ios? I always see different tutorials, and I can’t. I just want to upload an image for 3 seconds before entering my application
2
What’s the easiest way to make a splash screen on Ios? I always see different tutorials, and I can’t. I just want to upload an image for 3 seconds before entering my application
1
I suggest using Asset Catalogs. When creating a project, Xcode already creates such a file (Images.xcassets). If your project does not have one, add one. Open the file and in the list on the left right click and select "New Launch Image".
Then drag the images to the devices/resolutions you want to support. In the right view (Utilities) you can check the size each of the images should have (Expected Size). To finish, go to the project targets screen and select Asset Launchimage as Launch Images Source.
The simplest way to increase the visibility time of the splash screen is to make the main thread sleep. Example:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
sleep(3.0);
return YES;
}
However this is not recommended by Apple as the app should be available as soon as possible.
Browser other questions tagged ios objective-c xcode
You are not signed in. Login or sign up in order to post.
I did this, and the error when compiling:he Launch image set named "Launchimage" Did not have any applicable content."
– War Lock
You know what it can be?
– War Lock
Make sure the images you have placed are exactly the expected size (select each configuration and check the field "Expected Size")
– Rafael Leão