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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:14:45+00:00 2026-06-18T01:14:45+00:00

I have a UITableView for which I dynamically set the Frame in order to

  • 0

I have a UITableView for which I dynamically set the Frame in order to size it to the number of items. I’m doing this so the tableview can be “slid” down via a drag from the top of the phone. The UITableView is defined within a nib for the view.

Whenever the view which contains this sliding UITableView disappears (as in, viewDidDisappear is invoked), the UITableView’s Frame gets reset to the value in the nib (which I’ve set as 44, the size of the static footer).

My question is two part:

  1. Why does the Frame get reset, and what mechanism is resetting the Frame?
  2. How might I ensure that whenever the Frame gets reset to the nib value, that I can set the Frame to the size that I want?

For background, I’ve exhausted every plausible view lifecycle method.

An interesting note is that I tried to set the Frame in ViewDidAppear, which gets hit in reproducing my “bug” and for which I’ve verified the Frame.Height is the desired value at the end of the method, though when the pins fall at the end the Frame height is still at 44. Is the tableView IBOutlet I’m hitting not the one that is actually loaded in the view?

    public override void ViewDidAppear (bool animated)
    {
        RetractMemoryTableAnimation(0);

        // Frame is correct after this line (Height > 44)
        // But the Frame in my view persists to a height of 44
        this.tableView.Frame = new RectangleF(this.tableView.Frame.Location.X, this.tableView.Frame.Location.Y,
                                              this.tableView.Frame.Size.Width, this.CalculatedTableViewHeightWithFooter);
    }
  • 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-18T01:14:46+00:00Added an answer on June 18, 2026 at 1:14 am

    When writing custom code to set a UIView‘s frame, always make sure to set AutoresizingMask to UIAutoresizingMask.None if the view seems to be getting auto-resized.

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

Sidebar

Related Questions

I have a UITableView which I populate using a NSMutableArray . This tableview updates
I have an UITableView which includes a list of UITableViewCells. And I set the
I have a grouped UITableView which displays a number of cells, which includes both
I have a UITableView with 3 empty rows. The user can select which text
I am making an iPhone app. In this app I have a UITableView which
I have this UITableView which is displaying images, downloaded rom a database, as a
I have set up a UITableView which has 3 sections in, with 3 rows
I have a uitableview which loads data from internet and during this period im
I have a UITableView which loads through it's navigationController a new viewcontroller. This code
I have a UITableView myTable which has UISwitch for every row. How can I

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.