User Tools

Site Tools


ios-labs-s14:basics-nsurl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ios-labs-s14:basics-nsurl [2014/02/17 10:51]
mbarboi
ios-labs-s14:basics-nsurl [2014/02/26 12:55]
mbarboi
Line 1: Line 1:
 =====NSURLSession===== =====NSURLSession=====
  
-An updated version of NSURLConnection. Used to interact with the internet using HTTP.+An iOS object that handles all network communication. Used to interact with the internet using HTTP.
  
 Builds an HTTP request and fires it off to a URL. Returns the information provided by the server. Builds an HTTP request and fires it off to a URL. Returns the information provided by the server.
  
-Uses a **block** to provide reactive functionality. Code inside the block is executed when the call completes, allowing for a more concise ​implementation than NSURLConnection. Data is returned in binary format and must be converted (usually with NSJSONDeserializer).+Uses a **block** to provide reactive functionality. Code inside the block is executed when the call completes, allowing for a concise ​method of handling responses. Data is returned in binary format and must be converted (usually with NSJSONDeserializer).
  
 Sample Code (@"​URL"​ is the target): ​ Sample Code (@"​URL"​ is the target): ​
ios-labs-s14/basics-nsurl.txt ยท Last modified: 2014/02/26 12:55 by mbarboi