Last active
December 17, 2015 10:08
-
-
Save armstrongnate/5592095 to your computer and use it in GitHub Desktop.
JSON HTTP request in objective-c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *wiresUrl = [NSURL URLWithString:@"http://blahblah.com.192.168.1.100.xip.io/stuff.json"]; | |
NSData *jsonData = [NSData dataWithContentsOfURL:wiresUrl]; | |
NSError *error = nil; | |
NSDictionary *dataDictionary = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment