Data interaction between ipad and server
I am new in ipad developing and I need to develop an app that need to get data from server then display the data to the user.Can you give me some advice? If you show some examples or documents link,开发者_如何学编程 that's better.
As a starter for ten, the most common means of fetching data from a server are via the NSString stringWithContentsOfURL:encoding:error:
method (and other related methods in NSString) and the NSURLConnection class, which is capable of performing asynchronous background requests.
Both of the above linked class reference documents contain code samples (see the "Related sample code" section at the top of each).
Additionally, there are 3rd party solutions available, such as the commonly used ASIHTTPRequest class.
In terms of the displaying the fetched data, you really need a better idea of iOS programming to answer this yourself, as it's too large in scope to meaningfully answer. However, a good start would be the Table View Programming Guide for iOS guide.
精彩评论