Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4033618
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:52:09+00:00 2026-05-20T11:52:09+00:00

I have a XIB in interface builder that is in Portrait mode and has

  • 0

I have a XIB in interface builder that is in Portrait mode and has 5 UILabels on it spaced evenly across the view. When the iPhone is rotated right or left I want the labels to spread evenly across the view to take full advantage of the extra screen width.

I can do this with one control really easily using the Size&Position bit of Interface Builder but how do I set up the other controls to do this?

Is this something you have to do programmatically?

Thanks

Mike
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:52:09+00:00Added an answer on May 20, 2026 at 11:52 am

    You can try and do it by setting the autoresizingMask property that UIView has. This would be the easiest way, if you can get it to do what you want. You can set this wherever you create or initialize your views:

    view.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;

    It’s possible that you won’t be able to get the exact positioning for all 5 of your labels this way; but you should definitely be able to use it for at least some of them. For the rest, you want to implement the UIViewController‘s willRotateToInterfaceOrientation:duration: method. This will get called whenever the iPad rotates, and you can set up the location of your labels inside that method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an UITableView showing custom view cells that I've designed in interface builder.
I have MainWindow.xib in the application. In the Interface Builder, I rotate the main
I have a simple UIViewController that uses a XIB for its interface. As such,
I have a XIB set up like in this screenshot: alt text http://emberapp.com/jxpx777/images/interface-builder/sizes/m.png File's
I have an XCode project, with the XIB interface files built using Interface Builder.
I have a UIViewController that has a XIB. I don't want to get rid
I created a UIView xib in Interface Builder and tried everything I could to
I am developing an application that currently has a View Controller (call it ViewControllerX).
Sorry but I found no clear answer on that. I have an iphone app
I have a View Controller that is swapping UIView objects in and out. There

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.