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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:17:36+00:00 2026-06-10T11:17:36+00:00

In my app I am getting the data from the web-service and I have

  • 0

In my app I am getting the data from the web-service and I have to display it in UITableView.
But the condition here is I have to display only 10 records initially,then once the user scroll down I have to load more records.I tried searching it but didn’t get any useful answer.
I agree that I will use –

(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {

to display the value,but how will I fetch only 10 records from the service and then other record based on scroll.
Please provide some pointers or sample code.

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-10T11:17:38+00:00Added an answer on June 10, 2026 at 11:17 am

    In case if some one need it,i was able to solve my problem this way.
    First thing is you need the server configuration in such a way so that it should return 10 data at a time based on the row which is visible in TableView.
    This is the tableView delegate which get called and returns the visible cells in tableView

     -(void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
        {
            int lastRow=[nameArray count]-1;
            if(([indexPath row] == lastRow)&&(lastRow<[categoryArray count]))  
            {
    
                if(tableView==m_pDetailsTableView)    {
                    savedScrollPosition=lastRow;
                    startCellValue=[NSString stringWithFormat:@"%d",0];
                    endCellValue=[NSString stringWithFormat:@"%d",[nameArray count]+10];
                    [self connectToServer]; //Method to request to server to get more data
                }
            }
        }
    

    savedscrollPosition variable stores the variable as a point where you want to scroll the table view after load of data.

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

Sidebar

Related Questions

In my app in iPhone getting data from server through web services. When no
I have a app that loads some json from my php web service. This
Previously i have used restful wcf webservices to get the data from server.But now
I have one ASP.NET Webservice that i calling from my Android app and getting
My app is architected as follows: I have a web service (running on GAE,
When I'm accessing web service from jquery, I'm getting the 403 forbidden error.. I
I have been developing an app for iPad and consuming the Web Service in
I have an iOS app that is calling a web service for some XML
I have a web app, that consumes a web service. The main page runs
I am getting raw aac data from web stream and try to put it

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.