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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:38:17+00:00 2026-05-29T06:38:17+00:00

I have added a tableview with 10 records. The last row is the load

  • 0

I have added a tableview with 10 records. The last row is the load more records cell. In appStore when you search for an app, and if there’s more apps to be shown, then the last row says load more records (or something similar).

Now, if i have 10 records, and if the 11th cell says load more records, how do i program it to display 5 more records when the user clicks on the last row.

I have my 10 records stored to an array, so is it possible to append 5 more records to the array, without changing the order of it ?

Or do i have to load the whole array with 15 records, and then display it in the tableview ? (I don’t think this is the best approach)

Hope i made my question clear.

Sorry, i don’t have code to show my workings, i am stuck trying to figure this out.

  • 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-29T06:38:18+00:00Added an answer on May 29, 2026 at 6:38 am

    Allow me to give a simple explanation on how tables work in iOS. Every table has 2 main components: the data to be displayed, and the view (the display) of the table. The data is the source of information of the table. Any kind of data source can be used as the data source of your table (static info like NSString, arrays, mutable arrays, dictionaries…). The exact type of your data source depends on the application itself.

    These data has to be viewed to the user and this is the role of the UITableView. The code that is responsible for loading the data to the view is always inside the function tableView:cellForRowAtIndexPath:. In this function you do the loading and you also specify some view properties like the type of cells, style of table…

    Now the loading is taken exactly in the same order of the data source (unless you specify another way). So if your data is in an array, the first element of the array will be in the first cell of the table and so on.

    Now to answer the first part of your question, what type should your data source be? Since you are going to add things to your data periodically then for sure you need a mutable type. This could be NSMutableArray or NSMutableDictionary. Use arrays when your source of information is only one item, for example you are only adding names of players, and use dictionaries when your information has more than one item per cell like the player name, player age, player score (and say you are willing to display all these info in the cell; also remember that you can customize the view of the cell and do custom cells). Well, why mutable types? Because they allow to add an remove items to them. How to add and where do they sit? Usually mutable types has addObject which is used to add and the new item is always added to the end of the array.

    I hope this explanation helps you understand how things work so you can imagine what solutions you need to do to solve your problem.

    For a table to notice the change of the data source you always need to call:

    [myTableView reloadData];
    

    Reload data will force the function tableView:cellForRowAtIndexPath: to be called again and to reload all the data found in your data source, and for sure in the order they are in that data source.

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

Sidebar

Related Questions

I made a very simply table view, with load more function. I have added
I have added multiple labels in My Tableview cell. I am displaying facebook message
I have added search bar in my tableview and I am having number of
I have a tableview with a navigation bar at the top. I've added text
I have added a TableView using interface builder. Now i am trying to insert
I have added a view at the end of tableview and I needed to
I have a search bar added to the navigation bar. When the user types
I have added a background image to my tableview . But when i pull
I have a UILabel in my application & have added the label on tableview's
I have added a navigation controller in iphone app from my home screen 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.