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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T10:59:16+00:00 2026-05-28T10:59:16+00:00

I would like to have a view that scrolls. The view would have a

  • 0

I would like to have a view that scrolls. The view would have a header, which would initially take about a third of the screen. While the user scrolls, the header will start to get off screen, but once there is about 50px left, I would like the header to stick and the rest of the screen would still scroll… Any idea would be helpful, I’m more looking about methods than actual code. Here is an ascii art representation of what I’m trying to do :

+-------------+   +-------------+   +-------------+   +-------------+   +-------------+
| ###         |   | ##          |   | #           |   | #           |   | #           |
| ##          |   | #           |   |-------------|   |-------------|   |-------------|
| #           |   |-------------|   | 1. Lorem    |   | 2. Lorem    |   | 3. Lorem    |
|-------------|   | 1. Lorem    |   | 2. Lorem    |   | 3. Lorem    |   | 4. Lorem    |
| 1. Lorem    |   | 2. Lorem    |   | 3. Lorem    |   | 4. Lorem    |   | 5. Lorem    |
| 2. Lorem    |   | 3. Lorem    |   | 4. Lorem    |   | 5. Lorem    |   | 6. Lorem    |
| 3. Lorem    |   | 4. Lorem    |   | 5. Lorem    |   | 6. Lorem    |   | 7. Lorem    |
| 4. Lorem    |   | 5. Lorem    |   | 6. Lorem    |   | 7. Lorem    |   | 8. Lorem    |
| 5. Lorem    |   | 6. Lorem    |   | 7. Lorem    |   | 8. Lorem    |   | 9. Lorem    |
| 6. Lorem    |   | 7. Lorem    |   | 8. Lorem    |   | 9. Lorem    |   | A. Lorem    |
| 7. Lorem    |   | 8. Lorem    |   | 9. Lorem    |   | A. Lorem    |   | B. Lorem    |
+-------------+   +-------------+   +-------------+   +-------------+   +-------------+
  • 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-28T10:59:16+00:00Added an answer on May 28, 2026 at 10:59 am

    In your scrollViewDelegate, implement scrollViewDidScroll: and re-set the center property of your section header to something like:

    myHeader.center = CGPointMake(myHeader.center.x, myHeader.center.y - scrollView.contentOffset.y);
    

    whenever you determine that myHeader.frame.origin.y <= -scrollView.contentOffset.y

    This is off the top of my head, but should point you in the right direction.

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

Sidebar

Related Questions

I have a scroll view that I would like to fill the whole screen,
I have a view that I would like to populate data when the next
I have a custom-made view that extends the View class. I would like 2
I have a materialized view of a complex join, which I would like to
so I have a scroll view and what I would like is that when
I would like to have the keyboard already displaying when I show my view.
I would like for the generate List view contents to have a check added
Currently I have a ListView (using the Details View). I would like to implement
I have a problem that I would like have solved via a SQL query.
I would like to have an iframe take as much vertical space as it

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.