Search code examples
uiscrollviewlandscapespacingperspectiveportrait

I want to keep spacing between the UILables in landscape mode


I want to keep spacing between the UILables in my Xcode project when i'm in landscape mode. I have a scrollview with a few labels on it & it looks good in portrait mode but when im in landscape mode the labels are rising over each other & it looks bad. Is there any way to keep perspectivlly the spaces between the labels on landscape?

Thanks!


Solution

  • Try playing with autoresizing masks on the labels. If that doesn't work just reposition the labels from the viewcontroller whenever you get the rotation events.