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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:12:53+00:00 2026-05-27T21:12:53+00:00

I have a controller displaying both a status bar and navigation bar, and containing

  • 0

I have a controller displaying both a status bar and navigation bar, and containing a single UITableView. The UITableView is set programmatically to contain 2 sections, each with a single UITableViewCell and header. Up to and including iOS version 4.3.2, the UITableView displays the two sections stacked nicely, one on top of the other, and a log inserted into the method

(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath

reveals that the vertical position of UITableViewCells within the superview are 30.00 and 101.00 respectively. However, when running the same code on iOS5.0, the second section is vertically shifted downward, and the log reveals positions of 30.00 and 144.00 respectively. I’ve been trying to run this down, but so far no luck. Any ideas as to what could have changed in the new version of the OS that could be causing this behavior? Any insight would be greatly appreciated.

Also of note, the text of the second header was blurred as of iOS5.0, but applying a ceiling function to the value returned by

(float)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section

took care of the problem. The two issues are obviously related, but no amount of tinkering has gotten me closer to the source. Thanks in advance for any help.

  • 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-27T21:12:54+00:00Added an answer on May 27, 2026 at 9:12 pm

    It turned out that for this particular UITableView, a footer was not implemented, so the value returned by the heightForFooterInSection: method was superfluous. It would seem that in iOS4.3 and below, if the footer was indeed empty, the system disregarded the footer entirely, regardless of the “height” method. However, iOS5.0 respected the method and allotted the space, whether or not anything was actually occupying that space. Removing the unnecessary method solved the problem.

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

Sidebar

Related Questions

I have a Navigation Controller with a View Controller displaying a button. The button
I have an issue with a particular controller action not displaying the view. Here
I have an array controller holding some values, say - subjects. I am displaying
I have a navigation controller in the master pane of a split view controller.
I have a navigation-based application with 2 UIViewControllers (controller-2 is pushed onto controller-1 when
I have all the menu items in a Zend Navigation Container. I'm displaying the
Simply scenario -- I have two buttons both of which call the same controller/action.
I have a controller named store_controller.rb and method index that renders index.html.erb , displaying
I have controller with action new , and I want it to create ActiveRecord::Base
When submitting one form from view, how can i also read or have controller

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.