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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:46:23+00:00 2026-05-24T02:46:23+00:00

On iOS devices the section headers in UITableView’s have a nice behavior where they

  • 0

On iOS devices the section headers in UITableView’s have a nice behavior where they stick or ‘float’ to the top of the screen as you scroll through a section. The section headers in my particular case are loaded from other XIB files.

Is it possible to change the section headers depending on whether or not they are currently floating? Specifically I’d like to add a small shadow to appear under the header only while it’s stuck to the top of the view.

Thanks!

  • 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-24T02:46:24+00:00Added an answer on May 24, 2026 at 2:46 am

    I haven’t tested it yet, but I don’t see any reason why it wouldn’t be possible.
    Just make sure you set the right bounds (because your shadow needs to be on top of your view, not above it).

    You can use the following approach:

    1. Use scrollView:didScroll: to get notified about scroll-events.
    2. In this method, check whether you need to add your shadow-view to your (floating) header-view.
    3. If so, add it. (just [view addSubview:shadowView].) Something like CGRectMake(0.f, yourDefaultHeaderHeight, 320.f, yourShadowHeight) should be the frame of your shadowView.
    4. Now, update the bounds of view, so it can show your shadowView: CGRectMake(0.f, 0.f - yourShadowHeight, 320.f, yourDefaultHeaderHeight + 2 * yourShadowHeight).
    5. When you find out that your header isn’t floating anymore (by using scrollView:didScroll:), remove the shadow-view.

    Your headerViews bounds should be 0.f - yourShadowHeight because if you use just 0.f, it’ll blur (I don’t know why …).

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

Sidebar

Related Questions

I'm developing a web app for iOS devices, and want to have a header
I want to execute the DeviceInformation command on iOS devices. So far I have
I want to start programming for iOS-devices. I have mac mini and IPad 2.
I have 2 iOS devices and an application which starts or connects to a
I have a new set up for software development for iOS devices. I am
We have an app that has crashed on armv6 iOS devices coming from the
i have been testing my application on 4 IOS devices. 1 ipod touch 2g,
I have a web app for iOS devices. I have a pesky link that
I am developing an iOS application, and trying to zip the file I have
Anyone have any idea about CASlotProxy Class in Cocoa (iOS SDK)? I found 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.