Chapter 6: How Do I Use Objects in My Code?

9781118462133-co0601.tif

Objective-C is very different from C. The code looks similar, and many apps combine elements of both languages. But using Objective-C makes you think about the design of your app in a more abstract way that is less tied to computer hardware. Objective-C is a much looser language than C, and you can use its features to change how your app responds to events as it runs. With Objective-C, the goal isn’t just code that works; the goal is intelligent code with a wide range of possible behaviors. You can use Objective-C to create simple, linear code, but its powerful features can help you add smarts to your apps.

Moving from C to Objective-C

Introducing Objective-C Code

Defining Classes in Your App

Going Deeper with Objective-C

Get iOS App Development Portable Genius 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.