Hour 5. Using Compiler Directives

What You’ll Learn in This Hour

Exploring code from a template

Working with prefix headers

Controlling compilation with compiler directives

Reviewing the file structures of your code

Exploring Your Project

If you have followed the steps in Hour 4, “Organizing Projects with a Git Source Code Repository,” you now have your first Xcode project built in Objective-C. It does not do much (it opens an empty window and puts up a menu bar), but it runs. The structure of the project is the same as most of the projects you will build with Xcode, so this hour walks you through the few lines of code that have been generated for you. When you understand the structure, you can start to add your own code.

By the Way ...

Get Sams Teach Yourself Objective-C in 24 Hours 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.