Reputation: 1901
I have two labels and represent them in two rows line one under another.
Now i want that if a user opens the app on ipad then two labels will show in single row (next to each other)
i followed this tutorial (sample tutorial) it is for horizontal and vertical rotation and it is working on storyboard not on device.
kindly help me out. Thanks in advance.
Upvotes: 0
Views: 57
Reputation: 1895
You can use StackView and add variation for iPad as follows:
Now you can have labels in single row in iPad
If you don't want to use StackView then you have to alter the autolayout using SizeClass.
Hope this will help you :)
Upvotes: 2
Reputation: 100533
Put them in a UIStackView
and set it's axis vertical , click +
icon and select horizontal for W r, H r
Upvotes: 1