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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:35:05+00:00 2026-05-26T00:35:05+00:00

Many iPhone projects use Pull-to-Refresh pattern to load more results (usually new data from

  • 0

Many iPhone projects use “Pull-to-Refresh” pattern to load more results (usually new data from the server.

In my project I want to do just the opposite: “pull-up to refresh”. I want to load old data from the server but I need that the user request the data pulling up the UITableView.

How can I do it? Can anybody help me?

  • 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-26T00:35:06+00:00Added an answer on May 26, 2026 at 12:35 am

    Here’s what I’ve been using:

    First of all you have a view holding the “Pull up to refresh message”, and assign it to:

    [pullUpView setFrame:CGRectMake(0, [tableView rectForFooterInSection:0].origin.y, [tableView bounds].size.width,pullUpView.frame.height)];
    

    Then you setup two delegate methods as below to track the dragging.

    - (void)scrollViewDidScroll:(UIScrollView *)scrollView {    
        if (scrollView.isDragging) {
            CGFloat thresholdToRelease = [pullUpView frame].origin.y - [scrollView bounds].size.height;
            CGFloat thresholdToLoad = thresholdToRelease + [pullUpView frame].size.height;
    
            if (([scrollView contentOffset].y >= thresholdToRelease) && ([scrollView contentOffset].y < thresholdToLoad)) {
                [pullUpView reset];
            } else if ([scrollView contentOffset].y >= thresholdToLoad) {
                [pullUpView indicateThresholdRearched];
            }
        }
    }
    
    - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
        CGFloat thresholdToAction = [pullUpView frame].origin.y + [pullUpView frame].size.height - [scrollView bounds].size.height;
    
        if ([scrollView contentOffset].y >= thresholdToAction) {
            if (!performingAction) {
    
                [pullUpView startLoading];
    
                [UIView beginAnimations:nil context:NULL];
                [UIView setAnimationDuration:0.5];
                [tableView setContentInset:UIEdgeInsetsMake(0, 0, [pullUpView frame].size.height, 0)];
                [UIView commitAnimations];
    
                /* do your things here */
                performingAction = YES;
            }
        }
    }
    

    At the end revert the tableView’s contentInset to hide the pullUpView.

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

Sidebar

Related Questions

Like many other developers out there, I've created iPhone projects that use a UITabBarController
Many apps already in App Store has ability to print from iphone without installing
I have too many images to be download from net into iPhone? How can
Many applications have grids that display data from a database table one page at
Many iPhone code samples (from Apple, etc.) include code like this: - (void)viewDidLoad {
I'm working on an iPhone project that needs to receive data from a PHP
I am developing a 2d game for iPhone by using cocos2d. I use many
I'm new to Objective C. I see in many iPhone/iPad applications that after releasing
I like the effect used in many iPhone apps where a semi-transparent help screen
How many bogomips (or any other relevant unit) can an iPhone or iPod touch

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.