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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:18:12+00:00 2026-05-31T01:18:12+00:00

I got a UITableView with several headers and with clear backgrounds over a customized

  • 0

I got a UITableView with several headers and with clear backgrounds over a customized tableview background.

The problem comes when scrolling the tableview and the default functionality where the headers stays at the top of the tableview to indicate what section is “active”. Because the headerview has a clear background the text in the rows beneath the headerview is visible through the headers and it looks really bad.

Is there some sort of setting for the tableview to make the headers “follow” the rows when scrolling and disable this default behaviour?

I hope you guys understand my problem, I can provide screenshots if the problem isn’t good enough explained.

  • 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-31T01:18:14+00:00Added an answer on May 31, 2026 at 1:18 am

    Below is one solution:

    - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
           CGFloat sectionHeaderHeight = 40;
       if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) {
           scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);
       } else if (scrollView.contentOffset.y>=sectionHeaderHeight) {
           scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0);
       }
    }
    

    However it will have a bit of flicker while header reaches to top.

    One more soultion is to make Grouped table view.

    One more thing is to add a section with zero rows at the top and simply use the footer of the previous section as a header for the next.

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

Sidebar

Related Questions

I'm writing my first iphone app and through several examples I've got a UITableView
I've got the following code in one of my view controllers: - (void)tableView:(UITableView *)tableView
I've got another problem my my UITableView: I dynamically load Questions from a XML
I've got 2 sections in a UITableView. The tableview needs to stay in edit
I've got a UITableView with several entrys, and these are divided up in several
I have got the following code: - (void)tableView:(UITableView *)tableView commitEditingStyle: (UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
I'm building an app that contains an UITableview. I got tableview to work perfectly
I have following problem: I've got an UITableView with 7 custom cells. Each of
Got a weird problem with my NSMutableArray and UITableView. It's got 4 items in
i got the problem in my apps, i have UITableView and it's scroll slowly,

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.