There are applications for the site. Problems with the output of the information received on the phone screen. I get json myself, correctly parsing, I output part of the data to tableView. All received data is displayed.

How to implement the output page by page? Are there any standard tools in xcode to automatically break the resulting json in the application?

If the machine can not, then how can (just suitable reference can understandable manual). If there is no such possibility on the client’s (phone’s) side, then I’ll append the site’s api to give the data page by page. But then the question will be how to take them correctly.

Which of these methods is more correct? Separate data on server side or client side?

  • I think you should reconsider the architecture of the application. It will be more logical to request content page by page. And do not get the content in abundance and then scroll it. - Makarenko_I_V
  • it's not entirely clear what you want to do. You got json, converted it to a valid NSArray, displayed it in a tableView. What is the output page by page? Let's say there are 10 elements on the screen, do you need that when the user makes a swipe, the table moves by 10 and shows the next 10? - Max Mikheyenko
  • Good. Suppose the server sends me an answer that the answer will be 7 pages with 15 elements each and returns the first 15 elements. How in the application for ios to show the user that there are 7 pages with a list? With the conclusion of the 15 elements of the problems should not be - Ivan
  • @Makarenko_I_V, look at the comment above - Ivan
  • @max, no, not really. I want the data to appear on different pages. On the first - 10 pieces, for example, on the second - 10 pieces, and so on, until all the server's answers run out. With the ability to navigate through these pages (pagination) - Ivan

0