O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

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

The Basics

One of the first things you might notice about Objective-C code is the prolific use of brackets and colons. The syntax of Objective-C is based on Smalltalk, a language developed by Alan Kay at Xerox PARC in the 1970s. Smalltalk is object-oriented programming language taken to the extreme: absolutely everything is an object in Smalltalk. Objective-C, on the other hand, borrows the syntax while supporting C-style primitives, such as ints, floats, and chars.
To get a better handle on Objective-C, the following sections walk you through the syntax and conventions used in the language.

Named Parameters

If you have worked with languages like Java, C, PHP, or almost any other popular programming language, you are likely familiar with ...

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