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 6198303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:58:24+00:00 2026-05-24T03:58:24+00:00

how do get two UITextView’s in Interface Builder to align properly when going to

  • 0

how do get two UITextView’s in Interface Builder to align properly when going to landscape orientation?

I have one taking up the upper 1/4 roughly of the screen and the other one below taking up the remaining. Everything is looking good in Portrait.

In landscape however they overlap/don’t align properly. I’ve been trying the resizing masks but haven’t seemed to come up with the right combination.

How can I get them to keep themselves aligned properly during orientation changes (and use in iPad too would be good)

EDIT 1 – Should clarify that I have in fact on this screen, from top to bottow:

  • Menu Bar (at top)
  • UITextView with heading (bold text)
  • UITextView with details text

So not sure if this makes any different to the answer. Main point is that even when I play with different settings of auto-sizing I can’t seem to get it so that after an orientation change the bottom of the high UITextView is still neatly aligned with the top of the lower one (i.e. rather I seem to get an overlap effect)

EDIT 2 – I put borders around both UITextView and infact they are not overlapping in the Landscape mode, but rather the vertical width of the top UITextView (for the heading) seems to shrink such that it cuts off the 2nd/bottom line of the two line heading.

  • 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-24T03:58:25+00:00Added an answer on May 24, 2026 at 3:58 am

    To set your autoresizing mask properly, ask yourself these six questions:

    1. Do I want the height of my view to change when the height of its container changes? If so, enable the vertical spring with the up/down arrows in IB. This is equivalent to setting UIViewAutoresizingFlexibleHeight.

    2. Do I want the distance between the top of my view and the top of its container to change when the height of the container changes? If so, disable the top strut in IB. This is equivalent to setting UIViewAutoresizingFlexibleTopMargin.

    3. Do I want the distance between the bottom of my view and the bottom of its container to change when the height of the container changes? If so, disable the bottom strut in IB. This is equivalent to setting UIViewAutoresizingFlexibleBottomMargin.

    4. Do I want the width of my view to change when the width of its container changes? If so, enable the horizontal spring with the left/right arrows in IB. This is equivalent to setting UIViewAutoresizingFlexibleWidth.

    5. Do I want the distance between the left hand side of my view and the left hand side of its container to change when the width of the container changes? If so, disable the left strut in IB. This is equivalent to setting UIViewAutoresizingFlexibleLeftMargin.

    6. Do I want the distance between the right hand side of my view and the right hand side of its container to change when the width of the container changes? If so, disable the right strut in IB. This is equivalent to setting UIViewAutoresizingFlexibleRightMargin.

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

Sidebar

Related Questions

Hi, I am new to objective C.I have created two buttons using interface builder.Instead
I'm trying to get two divs side by side. The left one will have
I need to get two JPanels into one JApplet. paneel = new RekenmachinePaneel(); nummer
I cannot get a two-way bind in WPF to work. I have a string
While designing an interface for a class I normally get caught in two minds
I'm trying to get two Divs to sit side by side. I want one
Trying to get two different counts in one query. To do this I am
How do I get two buttons to appear one above the other in a
I need to get two arrays to merge into one while keeping all the
I need to get two fields from a database table (retrieved using linq-to-sql), one

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.