JSON + iOS 5; GO! (Tutorial)

May 30, 2012

What is JSON? JSON stands for JavaScript Object Notation. It’s a super lightweight and human readable data format. Go check it out and run back here.

iOS 5 includes classes to deal with JSON natively. Which is awesome. Let’s do this!

Twitter has a service that gives you recent tweets in JSON format when you give it a URL. Like this:

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=jmenter&count=10

That’ll give you my 10 most recent tweets in JSON format. Easy peasy. Let’s make an app.

In Xcode, New Project, Single View Application. Use ARC. Coolio.

Add a UITableView to the view. Add it as a property to the ViewController, add the data source and delegate and wire those up.

Add some methods to the ViewController.m: one to issue a request and one to handle it. Fix up the data source and delegate methods.

Done. This was not really a tutorial. Sorry to trick you.

Get the Xcode project here, check out the ViewController.m, and see how easy it is!


git ‘er dun

May 26, 2012

I’ve added my fancy-schmancy more accurate UISlider and ShapeUtilities (which converts illustrator data into a cocoa CGPathRef) to Github! Check them out here:

JMSlider on Github

ShapeUtilities on Github

They are both standalone Xcode projects that will run on iOS 4 and greater. They have nice READMEs and commented code. If you would like to clone and improve these, please feel free. Also, let me know if you do that! They aren’t under any kind of license at all so do what you feel like doing.


Update and note.

May 20, 2012

Hi folks. Just want to let you know that publishing a new app (or version of an old app) once a week is actually quite a challenge with a 21 month old running around. Since I’m the primary caregiver that doesn’t leave a lot of quality, distraction-free time to code and whatnot. So I’m a little late in announcing new apps.

BUT, I still plan to publish apps and update older apps. I’ll see what I can do to make up for missing my targets the past two weeks. Thanks for your understanding.