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

  • Home
  • SEARCH
  • 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 7747861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:38:08+00:00 2026-06-01T10:38:08+00:00

I have a simple table with table sections, cells and a tableFooterView. The footer

  • 0

I have a simple table with table sections, cells and a tableFooterView.

The footer is just an image with a shadow gradient. When I scroll to the bottom, I want the table to snap to the bottom of the last cell, and only show the shadow when you scroll beyon this, and then it should snap back to the bottom of the last cell, thus hiding the footer again.

I’ve tried to search for this, but I don’t seem to find the right keywords (still new to xcode, and the cryptic/long names on everything), all I find is people wanting to enable/disable bounce, or people wanting to add custom buttons to the footer.

Could anyone point me in the right direction?

  • 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-01T10:38:09+00:00Added an answer on June 1, 2026 at 10:38 am

    A UIScrollView, the superclass of UITableView, can be a miserable creature. There is so much behavior programmed into them that sometimes what would seem on paper to be an easy proposition can be hard. Add to that the fact that this is a table-view and it just gets worse.

    If you are determined to use the UITableView‘s tableFooterView property to accomplish this, I have had limited(very) success using:

    These are UIScrollViewDelegate methods, your view controller is likely already the table-view’s delegate.

    - (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView{
        UIView *tableViewFooter = _tableView.tableFooterView;
        CGFloat maxContentOffsetY = tableViewFooter.frame.origin.y - scrollView.frame.size.height;
        if (scrollView.contentOffset.y > maxContentOffsetY){
        //if (targetPoint.y > maxContentOffsetY){
            [scrollView setContentOffset:CGPointMake(0, maxContentOffsetY) animated:YES];
        }
    }
    - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ // called when scroll view grinds to a halt
        // Check offset and correct if we landed below the correct offset
        UIView *tableViewFooter = _tableView.tableFooterView;
        CGFloat maxContentOffsetY = tableViewFooter.frame.origin.y - scrollView.frame.size.height;
        if (scrollView.contentOffset.y > maxContentOffsetY){
            [scrollView setContentOffset:CGPointMake(0, maxContentOffsetY) animated:YES];
        }
    } 
    

    I would suggest simply adding a gradient to your view-controller’s view property. That way when the table scrolls offscreen you will see the gradient behind it. Then you will get most of the behavior you want for free.

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

Sidebar

Related Questions

I have simple table creating script in Postgres 9.1. I need it to create
I have a simple table in MySql whose raison-d'être is to store logs. The
I have a simple table with autoincrementing ID's and one text column. id(int), value(nvarchar)
I have a simple table in Sybase, let's say it looks as follows: CREATE
I have a simple table view which is editable. All I need the user
I have a simple table (lets call it Table1) that has a NVARCHAR field
I have a simple table on my local server. mysql> desc table ; +-------+---------+------+-----+---------+-------+
If I have a simple table where the data is such that the rows
Say I have a simple table that contains username, firstname, lastname. How do I
I have a simple UITableView, and I want to add a checkmark whenever 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.