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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:59:10+00:00 2026-06-14T05:59:10+00:00

I am working on a project in which at first web service call we

  • 0

I am working on a project in which at first web service call we are getting some 20 number of data which we are loading to table view and once we start scrolling up for view when it reaches 20 number we need to call service for next 20 no’s, like facebook does.

This we need to do for each next 20 until data ends and load to tableview from last data of previous call and we can see all data when we scroll down for previous data. And need to show “more data loading” when we scroll up table after 20th cell.

Please Help me !

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-06-14T05:59:12+00:00Added an answer on June 14, 2026 at 5:59 am

    Simply create private offset variable and increase it each time on success loading.

    Let’s think this is your web service that gets GET parameters:

    http://server.com/?offset=0&amount=20
    

    Your Objective C code will look like this:

    In header file:

    @interface YourClass
    {
       uint _offset;
    }
    @end
    

    In implementation file:

    - (void)viewDidLoad {
        _offset = 0;
    }
    
    - (void)loadFromServer {
        NSString *stringURL = [NSString stringWithFormat:@"%@/%@", kServer, _offset];
        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:stringURL]];
        NSString *params = [NSString stringWithFormat:@"offset=%i&amount=20", _offset];
        NSData *postData = [params dataUsingEncoding:NSUTF8StringEncoding];
    
        request.HTTPMethod = @"GET";
        request.HTTPBody = postData;
    
        [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
    
        if (error) {
            NSLog(@"Error: %@", error);
        }else {
            NSError *jsonError;
            NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves error:&jsonError];
    
            _offset += 20;
        }
    }];
    

    }

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

Sidebar

Related Questions

i am working on project in which we are creating a web service that
First, some context: I'm currently working on a project in which I use the
I'm working on my first homework project in a web programming class, which is
I'm working on my first project in which I'm utilizing PHPUnit for unit testing.
Working on my first Web Pages project using C# and Webmatrix. So for thing
In the legacy code I'm working with, a web service accesses SharePoint lists. Some
I am working on my first web project and I need help adding IF
I am currently working on a Web API project with a Database-First method using
I am currently working on some web dev project in Java, i have implemented
Can anyone help me find an up-to-date, working ATL project which has a main

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.