Skip to content

Instantly share code, notes, and snippets.

@asakin
Created October 27, 2013 22:26
Show Gist options
  • Select an option

  • Save asakin/7188638 to your computer and use it in GitHub Desktop.

Select an option

Save asakin/7188638 to your computer and use it in GitHub Desktop.
- ( void ) fetchArticles
{
NSURL * serverUrl = [ NSURL URLWithString : @ "http://skycure-journal.herokuapp.com" ] ;
NSMutableURLRequest * request = [ NSMutableURLRequest requestWithURL : serverUrl ] ;
[ request setValue : @ "application/json" forHTTPHeaderField : @ "Content-Type" ] ;
self.connection = [ [ NSURLConnection alloc ] initWithRequest : request delegate : self ] ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment