P
P
Petr Marochkin2014-02-11 14:17:56
Objective-C
Petr Marochkin, 2014-02-11 14:17:56

What is the way to communicate with the web server from iOS?

Please tell me how best to read data from a web server. Requires an application for an ad site (similar to Avito).
A site with ads, respectively, there are ads themselves, which should be loaded into the application gradually, an analogue of an endless wall in social applications. networks. Those. I want the same principle, open a category, load the first 20 ads, then scroll down, load the same number more .. etc. I
had experience with plist - just read the data from there, and my idea is that for each query, form plist and already use it in TableView. This approach is easier than reading XML for example, but XML has streaming reading, and data can immediately appear in the feed as soon as a part of XML is read .. something like this, if I'm wrong, correct pliz.
My first question is how to read the data correctly. plist or xml?
Second - are there any ready-made solutions for organizing infinity scroll for TableView?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
IURIA, 2014-02-11
@petun

1. You can not form JSON or XML on the server side. IMO JSON is easier to parse.
Or you can transfer ready-made objects, for example, using Thrift thrift.apache.org
2. If Google banned you, you can use the stackoverflow search: stackoverflow.com/search?q=infinite+scroll+objective-c

S
Stepan, 2014-02-11
@L3n1n

On the server side, you make api with the issuance. On the client sqlite to which you load with api. I don't understand what is the problem..

P
Petr Marochkin, 2014-02-11
@petun

API with issuance, what should be output? XML or PLIST? How will be better? Given that the data will be transmitted in small parts.

P
Petr Marochkin, 2014-02-11
@petun

Thanks for the answer! I'll try both XML and JSON, I want to decide for myself which is better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question