Posts Tagged "NSURL"

How to list the contents of an NSURL

Posted on Jun 16, 2013

On the iOS simulator we have the luxury of peeking inside our virtual devices with the Finder. We can do this by heading over to the Finder, holding down Option and clicking Go. This will bring up the...

Learn More

How to display a UIImage from an NSURL

Posted on Jun 15, 2013

If you’re displaying images from the main iOS bundle, things are fairly straightforward: self.imageView.image = [UIImage imageNamed:@"Amy.png"]; But if you have an NSURL to your image then...

Learn More

How to parse a JSON URL in iOS and Cocoa

Posted on Apr 14, 2013

Both Cocoa and iOS have built-in methods to parse (and generate) JSON data using NSJSONSerialization. Most commonly you’ll want to call a URL with parameters which will return some data. You take this...

Learn More