2Objective-C

iOS applications are written in the Objective-C language using the Cocoa Touch library. Objective-C is a simple extension of the C language, and Cocoa Touch is a collection of Objective-C classes. This book assumes you know some C and understand the ideas of object-oriented programming. If C or object-oriented programming makes you feel uneasy, we recommend starting with Objective-C Programming: The Big Nerd Ranch Guide.

In this chapter, you will learn the basics of Objective-C and create an application called RandomPossessions. Even if you are familiar with Objective-C, you should still go through this chapter to create the BNRItem class that you will use later in this book.

Objects

Let’s say you need a way to represent a party. ...

Get iOS Programming: The Big Nerd Ranch Guide 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.