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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:31:47+00:00 2026-06-14T22:31:47+00:00

I have a Storyboard which contains a UITableViewController . The table view is static

  • 0

I have a Storyboard which contains a UITableViewController. The table view is static and contains two sections. The table view was setup entirely in IB (including the header and footer text of the table view sections) – I have not implemented any table view delegate methods in my view controller.

If I attempt to get a reference to the UITableViewHeaderFooterView for a given section it always returns nil.

UITableViewHeaderFooterView* header =[self.tableView headerViewForSection:0];

When I run the app I can see the header and footer text that I set in IB so I know those views are there. I just can’t figure out how to access them programmatically.

Any help would be much appreciated,
CS

  • 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-14T22:31:48+00:00Added an answer on June 14, 2026 at 10:31 pm

    Actually you’ll need to specify the table footer view, and pass it to the table view using its delegate.

    For example, suppose you have defined a IBOutlet UIView named tableFooterView.
    Then in the following delegate method, you can pass your tableFooterView to your table view:

    - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section;   // custom view for footer. will be adjusted to default or specified footer height
    {
        return self.tableFooterView;
    }
    

    Also you’ll need to implement the following method to set the height of the table footer view:

     -(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
     {
        return self.tableFooterView.frame.size.height;
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following setup causes trouble: In my storyboard I have a standard table view controller,
I have a storyboard which contains views which simply refuse to change. If I
I have a storyboard setup as a Tabbed Application with first view controller containing
I have one view which was created for iPad, using a Storyboard. Now, I
I have a UITableView that pushes, via a storyboard segue, a view, which displays
I have a Master/Detail view which opens a popover view via storyboard segue. There
I have a view in my storyboard which I assigned an identifier called MainView.
I've a Storyboard with a UIScrollView which contains two UILabels, a UIImageView and a
I have got a single view in my storyboard, which I add to my
I did two sample applications in ios.Both applications i have done using storyboard.Then after

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.