O'Reilly logo

iOS in Practice by Bear Cahill

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

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 ...

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