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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:07:26+00:00 2026-05-24T03:07:26+00:00

I have a scrollview with all my data to be showed and I want

  • 0

I have a scrollview with all my data to be showed and I want the user to trigger it being updated. The user should pull the scrollview downwards, then a small view will be shown that was previously hidden and that says: “updating” or “release to update”.

Look at the iPhone facebook app and you will see what I am talking about.
They did it pretty awesome, they have a small animation that and an arrow that makes it easy and intuitive.

However when trying to replicate this behaviour I have found that the UI is blocked until the scrollview delegate function was run. This is impractical because I want to update the UI from that scrollview delegate function.
So when the user holds the scrollview in a dragging motion, there should be a small animation or so that tells him to release it or hold it longer.

- (void) scrollViewDidScroll:(UIScrollView *)scrollView
{    
    CGPoint topOffset = CGPointMake(0, 20);

    if (self.contentOffset.y < 0 )
    {        
        labelUpdate.text = @"Release to update.";

        //do something here to update the UI
    }   
}
  • 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-24T03:07:27+00:00Added an answer on May 24, 2026 at 3:07 am

    Thanks for all the answers,

    ultimately I have chosen this solution:
    https://github.com/leah/PullToRefresh

    because it simple and it works. Additionally I have refactored the ViewController shown there into a simple UIView type that you can comfortably use with any UIScrollView derived class.

    A link with code will follow shortly.

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

Sidebar

Related Questions

I have a ScrollView and a very long text on TextView and I want
As said in the title, I have a scrollview that should be listening for
I have a UIScrollView . The scrollview.contentSize is set to the height of all
I have a scrollview in my app and the second I scroll to the
I have a scrollview (IBOutlet); in that scrollview I have added an imageview. I
I have a scrollview control that has a StackPanel (Orientation=Vertical) UI Element inside of
I have a scrollview in which i am creating buttons programmatically. On touch, button
I have a scrollview which has to display a view larger than the available
I have a ScrolLView that wraps a ViewFlipper. The content in the ViewFlipper is
I have a layout where I have a ScrollView and some stuffs. It looks

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.