Day 1: What’s It Like Out?

Or, Loading Weather Data from the API

Today we’ll use Xcode to create a new iOS project. We’ll dive into writing the code to access the API first, logging the result. Then we’ll build a UI to show the current temperature and location.

Creating a Project

To get started, open Xcode and choose to create a new project. Choose iOS > Application > Single View Application. Name it Weather and give it an organization identifier of your big-endian DNS name, in the form of com.yourorg. The language should be Swift, it should be a Universal project, and you can either include or exclude unit and UI tests. We won’t do any development on tests, but you may want to look at them. We won’t need Core Data, so you can leave that selection ...

Get Seven Mobile Apps in Seven Weeks now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.