0
votes

I have used this tutorial video for implementing the splash screen on the ios app. Like the tutorial video, I have added a launch screen file and insert the logo and strip images into it. It is working almost fine on iPhone devices but when it comes to iPad the logo is not in the center.

My design(Have a strip on bottom):

enter image description here

Current screenshot:

enter image description here

In iPad, the logo is not on the center and the strip is not on the footer. It behaves like an iPhone size in the IPad device. How can I center the logo and put the strip on the footer for all devices? And what is the best approach for implementing splash in ios?

1
"I have added a launch screen file and insert the logo and strip images into it" can you show us the code here?Nikhileshwar
@Nikhileshwar there is no code, did you go through the tutorial video. As per the video I have imported the images. Please go through the video, there is no code behind this.Sreejith Sree
Have you added all the images into the correct image assets?FreakyAli
@FreakyAli i am using launchscreen storyboard feature, not assest xcassets featureSreejith Sree
@FreakyAli And my assest xcassets have only appicon option, no launchscreen option. drive.google.com/open?id=1ltbJ0VvajKLA6QkIrNugVDQE8bzo_Z78Sreejith Sree

1 Answers

3
votes

Make sure that you had added constraints to your controls. If you consumed autolayout to place the controls it will adapter to all size devices including iPads. Change the mode to constraint mode at the top right side of the designer:

Use the center point to center a control like:

Then edit their constants in the property window:

Click the more button to add leading, bottom, trailing constraints to display a control at the bottom of the view like:

If it still doesn't work , you could provide a sample and I will check it on my side .