You are previewing Test-Driven iOS Development.

Test-Driven iOS Development

Cover of Test-Driven iOS Development by Graham Lee Published by Addison-Wesley Professional

7. Application Logic

Now that I can create and manipulate objects that the user cares about working with in BrowseOverflow, it’s time to think about hooking up with the real StackOverflow service so that the objects created in the app reflect the content of the site. This means going to the Stack Exchange API documentation at and finding out how to consume their data.

Plan of Attack

According to the API documentation, StackOverflow has methods for requesting the questions in a topic, and the details for a question including the list of answers for that question. This does not validate the design for the domain model from Chapter 6, “The Data Model,” but indicates that because it’s a good fit for the data ...

The best content for your career. Discover unlimited learning on demand for around $1/day.