Parv Bhasker
Parv Bhasker

Reputation: 1901

How to change label position for ipad to fill the space

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

Answers (2)

iOS_MIB
iOS_MIB

Reputation: 1895

You can use StackView and add variation for iPad as follows:

enter image description here

enter image description here

Now you can have labels in single row in iPad enter image description here

If you don't want to use StackView then you have to alter the autolayout using SizeClass.

Hope this will help you :)

Upvotes: 2

Shehata Gamal
Shehata Gamal

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

Related Questions