M
M
Maxim Degtyarev2015-03-12 12:40:35
Objective-C
Maxim Degtyarev, 2015-03-12 12:40:35

How to make a responsive launchscreen?

I am developing an ios application. It uses launchscreen.xib. There are layouts for this screen, for all resolutions. Tell me how to make the launchscreen itself pull up the desired image depending on the device and resolution? I suspect that this is somehow related to size classes, but I did not find a clear answer specifically for my question - there are articles on how to arrange, for example, text elements using constraints, but this is not quite right.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2015-03-12
@This_man

launchscreen.xib exists just to avoid flooding the project with layouts for all resolutions. If you lay it out like any other interface screen - that is, with many elements, using constraints and other magic - you get a lighter, scalable and simpler solution.
#added:
If the choice still belongs to a set of pictures, then the decision is made by right-clicking in the list of pictures:
It turns out such a rather sickly set and no classes:
77e3aaafe18347c3b99d23bed917ce3f.png

S
Squatch, 2015-03-12
@Squatch

Actually, here: stackoverflow.com/questions/26699445/is-it-possibl...
Add an image to Images.xcassets, and select the necessary devices and size classes in the attributes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question