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
ios-labs-s14:basics-nsurl [2014/02/26 12:54]
mbarboi
ios-labs-s14:basics-nsurl [2014/02/26 12:55] (current)
mbarboi
Line 5: Line 5:
 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