Programming with Interface Builder in landscape mode

I want to create an application using Interface Builder in landscape mode. I do not know how to configure controls in landscape mode. All I know is I rotate my UIView using self.transform. I am new to this. So can someone help me.

+3
source share
3 answers

Not sure if this is the answer to your question, but you can rotate the views in IB to show in landscape mode by clicking the arrow in the upper right corner.

See image IB landscape

+9
source

, , Xcode4 + . .xib > " " > "" > "". :

enter image description here

Simulated Metrics, , :

enter image description here

+6

The short answer (as far as I know) that there is currently no easy way to do this:

What is the best way to deal with landscape / portrait differences in IB?

+1
source

Source: https://habr.com/ru/post/1703879/


All Articles