O'Reilly logo

Seven Mobile Apps in Seven Weeks by Tony Hillerson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required