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

  • Home
  • SEARCH
  • 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 9205717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:01:01+00:00 2026-06-18T00:01:01+00:00

I am not grasping autolayout that well, I guess. I have a simple UITableView

  • 0

I am not grasping autolayout that well, I guess. I have a simple UITableView on my ipad NIB. I would like this UITableView to grow to occupy 75% of the height in portrait orientation, and shrink to 25% when in landscape mode. Again this is as simple as can be; I just have a NIB with a UITableView plopped onto it.

I’m using ios 6 with autolayout enabled.

Can someone please tell me what the magic autolayout settings are for the constraints? I have played around with content compression and content hugging but nothing seems to change at all. My UITableView height seems to stay at 480 height and never grows.

Thank you!

  • 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-06-18T00:01:02+00:00Added an answer on June 18, 2026 at 12:01 am

    Try adding a “Top Space to Superview” Vertical Space constraint on the UITableView.

    On my iPhone app I have an embedded UITableView that should show below a UIView (with some custom filter options). All worked great in Portrait but in Landscape the UITableview didn’t resize. Adding a Vertical Space constraint of 56 to the UITableview and pining the height on the UIView resolved it.

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

Sidebar

Related Questions

Having issues with this, I'm certain that I'm not grasping something. Let's say I've
this may seem like a very basic question, but i have difficulty grasping it,
Not sure how to ask this, but i'll give it a try: I have
So, say I have a simple enum and a class that uses it: enum
I have a little trouble grasping the concept of making views that will display
I have been trying to make a treeview that looks something like 2001(root) -Student1(node)
There's many answers to this problem, but I'm not sure that they all work
I'm having trouble grasping how to do this. I have a polygon defined by
I'm learning joins in my class, but I'm not fully grasping some of the
Not sure whats going on here, or what could be the integer in this

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.