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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:09:24+00:00 2026-05-28T13:09:24+00:00

In a tableview we usually load like a few records (example: 10 records), and

  • 0

In a tableview we usually load like a few records (example: 10 records), and then if the user wants more he goes and clicks on the next button, where we load another 10 records.

Instead of clicking on a button to load the next 10 records, i want the user to push down the last record and then load another 10 records. Look at the pull To Refresh project. In this the user will have to hold/pull the first record for awhile to refresh the page. In a similar manner, i want the user to hold/pull the last record to load another 10 records.

Is this possible? and how could i modify the code to do this ?

Important facts:

1.) the arrow image should always point to the last record.
2.) When the user holds the image down, then another 10 records should load, and the arrow image should now be on the 21st record (the last record).

How can i do this programatically ?

  • 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-28T13:09:25+00:00Added an answer on May 28, 2026 at 1:09 pm

    looks like strange way to refresh, but why not 🙂

    - (void)viewDidLoad {
    
    
        [super viewDidLoad];
        // Add a pinch gesture recognizer to the table view.
        UIPinchGestureRecognizer* pinchRecognizer = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(handlePinch:)];
        [self.tableView addGestureRecognizer:pinchRecognizer];
        [pinchRecognizer release]; 
    

    handle it:

    -(void)handlePinch:(UIPinchGestureRecognizer*)pinchRecognizer {
    
        /*
         There are different actions to take for the different states of the gesture recognizer.
         * In the Began state, use the pinch location to find the index path of the row with which the pinch is associated, and keep a reference to that in pinchedIndexPath. Then get the current height of that row, and store as the initial pinch height. Finally, update the scale for the pinched row.
         * In the Changed state, update the scale for the pinched row (identified by pinchedIndexPath).
         * In the Ended or Canceled state, set the pinchedIndexPath property to nil.
         */
    
        if (pinchRecognizer.state == UIGestureRecognizerStateBegan) {
    
            [self updateForPinchScale:pinchRecognizer.scale atIndexPath:newPinchedIndexPath];
        }
        else {
            if (pinchRecognizer.state == UIGestureRecognizerStateChanged) {
                [self updateForPinchScale:pinchRecognizer.scale atIndexPath:self.pinchedIndexPath];
            }
            else if ((pinchRecognizer.state == UIGestureRecognizerStateCancelled) || (pinchRecognizer.state == UIGestureRecognizerStateEnded)) {
                self.pinchedIndexPath = nil;
            }
        }
    }
    
    
    -(void)updateForPinchScale:(CGFloat)scale atIndexPath:(NSIndexPath*)indexPath {
    
        if (indexPath && (indexPath.section != NSNotFound) && (indexPath.row != NSNotFound)) {
             // make update here if indexpath == last index path
             /* 
             Switch off animations during the row height resize, otherwise there is a lag before the user's action is seen.
             */
            BOOL animationsEnabled = [UIView areAnimationsEnabled];
            [UIView setAnimationsEnabled:NO];
                [self.tableView beginUpdates];
                   // do any changes like inform user about download here
                [self.tableView endUpdates];
    
    
            [UIView setAnimationsEnabled:animationsEnabled];
        }
    }
    

    and vu a la

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

Sidebar

Related Questions

Usually, In the scrollview is a tableview or textview, and then We can control
I have a tableView and when the user is selecting one of the cells,
the main tableview will have rows that is added/created from the user and that
Usually, a UISearchDisplayController, when activated, dims the tableView and focuses the searchBar. As soon
Usually that really sounds like an sbolutely simple task: I have a view and
usually when tapping the top of the screen the tableview scrolls all the way
-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if([tableView.somethingMagicalHereThatAllowsMeKnowWhichCellItIs isEqualToString:@CellType]){ return 50; } return 25;} I
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { if(section != 0) { UIView *view = [[[UIView
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { MaSystemGuiAppDelegate *appDelegate = (MaSystemGuiAppDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.deneme
I have a tableView that's loosely based on the DetailViewController in ye olde SQLiteBooks.

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.