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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:09:37+00:00 2026-05-27T08:09:37+00:00

I am using a static grouped UITableView to display some settings to the user.

  • 0

I am using a static grouped UITableView to display some settings to the user. Above each group I have a header with a title.

I want to customize the look of the table view and I want to use this look throughout the whole application. Therefore I have subclassed the UITableViewController and my TableViewControllers are inheriting from my subclass.

Is there a way to enter a title for a header using Interface Builder and in my UITableViewController subclass change the look of the header?

  • 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-27T08:09:38+00:00Added an answer on May 27, 2026 at 8:09 am

    I tried retrieving the title using [self tableView:self.tableView titleForHeaderInSection:section] but quickly after posting this question I realized it should have been called from super. Therefore:

    [super tableView:self.tableView titleForHeaderInSection:section].

    The header can be customized using

    - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
    {
        NSString *title = [super tableView:self.tableView titleForHeaderInSection:section];
    
        if (title.length == 0) return nil;
    
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 40)];
        label.textColor = [UIColor whiteColor];
        label.backgroundColor = [UIColor clearColor];
        label.text = title;
    
        return label;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some large images in a grouped UITableView. There's 1 row in each
I have been reading that creating dependencies by using static classes/singletons in code, is
I have a TableViewController that is using a grouped Style and has two(2) sections.
I am using static Arrays and HashMaps to store some values in my AppWidgetProvider
I have a general question...when should i be using static classes or static methods?..
We're using static libraries in an iOS app. Some of those static libraries require
I have a list of specific objects(meetings) which I need to group using a
I'm using Grouped UITableView and add UITableViewCells two UILabel's and adding them to the
I'm using static initialisation to ease the process of registering some classes with a
A lot of what I have learned about VB I learned from using Static

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.