Chapter 2. Creating an iOS application

 

This chapter covers
  • Implementation and header files
  • Working with buttons
  • Actions and outlets

 

At the end of the last chapter, you created your first iOS app. But it’s a stretch to say you “developed” an app. Xcode did the majority of the work—you just added a label and typed “Hello World.” You didn’t include any user interaction or even write any code.

In this chapter, you’ll add to your current Hello World app to make it do some basic things that will move it from an Xcode template closer to a legitimate app.

First, let’s look at the types of source code files (.h and .m). Then you’ll see how to tap into that process to get user actions and then act on them. Finally, I’ll briefly talk about notifications ...

Get iOS in Practice 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.