Chapter 7Example: Writing an API-Driven App

It’s time for the main event. We’re going to put together everything we know about iOS development and write a complete app. This chapter will introduce only one topic we haven’t covered yet: sending and receiving information from the Internet via HTTP. Nowadays most software needs to communicate to an external service in some way, so this example is highly relevant to whatever you try to build. Since this isn’t a book on iOS design, we might not wind up with the prettiest software on a device, but it will do everything we need.

We’re going to build a mobile app for the Colr JSON API (http://www.colr.org/api.html). Our users can type in a color hex code (i.e., #3B5998) and then see what tags Colr ...

Get RubyMotion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.