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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:11:42+00:00 2026-06-18T02:11:42+00:00

i want to change the titleForHeader background color in iOS. – (NSString *)tableView:(UITableView *)tableView

  • 0

i want to change the titleForHeader background color in iOS.

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
     return @"A";
}

this method show the titleHeader section in UITableView.

for default it’s background color is lightblue color.

I wan to change black color of these background.

How can i do?

  • 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-18T02:11:43+00:00Added an answer on June 18, 2026 at 2:11 am

    Look at Alex Reynolds answer on here

    UITableView – change section header color

        - (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 
        {
          UIView *headerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 30)] autorelease];
          if (section == integerRepresentingYourSectionOfInterest)
             [headerView setBackgroundColor:[UIColor redColor]];
          else 
             [headerView setBackgroundColor:[UIColor clearColor]];
    
    
     return headerView;
    }
    

    If you just get a background color but no text

    Look DoctorG answer on same question

           UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(10, 3, tableView.bounds.size.width - 10, 18)] autorelease];
        label.text = @"Section Header Text Here";
        label.textColor = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:0.75];
    
    label.backgroundColor = [UIColor clearColor];
    [headerView addSubview:label];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a RadioButtnList. I want change body background color based on radio button
i have many div's with the same background image and i want change this
I want to change the background color of a textbox as an indicator that
I want change background of all cells in a tableView, I have used initWithStyle:UITableViewCellStyleValue1
I want change color of this view. I want tabbar more button view color
I have wpf Expander control and I want change background color of Header when
i want change the content of a UITableView when i change a button, how
What I want change the properties(e.g. background) of a context menu in a datatemplate
Hi, I had Generate custom layouts in my screen, i want change color or
I want to change a number to a string like this: var 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.