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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:42:32+00:00 2026-05-31T17:42:32+00:00

I followed this post to make my section header animate out of view when

  • 0

I followed this post to make my section header animate out of view when the tableview is scrolled. However, when scrolling back to the top, the header does not come back into view. Ever. Given that I followed the solution exactly (and I’m not setting the contentInset anywhere else), I’m quite perplexed. Can anyone point me in the right direction? Here is my code:

- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
  CGPoint p = scrollView.contentOffset;

  CGFloat height = [self tableView:self.agendaDetailTable heightForHeaderInSection:0];

  if (p.y <= height && p.y > 0) {
    self.agendaDetailTable.contentInset = UIEdgeInsetsMake(-p.y, 0, 0, 0);
  } else if (p.y >= height) {
    self.agendaDetailTable.contentInset = UIEdgeInsetsMake(-height, 0, 0, 0);
  }
}
  • 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-31T17:42:33+00:00Added an answer on May 31, 2026 at 5:42 pm

    Enable bounces and alwaysBounceVertical for the table to allow it to scroll over the edge of content and rewrite the offset while that’s happening.

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

Sidebar

Related Questions

I followed this post here and sorted out how to set the ForeignKey of
I followed this post step by step but when I'm running it and enter
I followed the directions in this post: how can we integrate jquery autocomplete using
I followed this tutorial: https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf However, I can't seem to set the path right.
I followed this link to make use of recent files list but statement below
Since I can't make any comments (only post an answer) to this post ,
I recognize this may be a duplicate post, but I want to make sure
I followed several tutorial to make this work, but I can't get draggable items.
I have followed the Accepted Answer's instructions from this post as regards creating a
Followed this question about delayed_job and monit Its working on my development machine. But

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.