O'Reilly logo

Programming in Objective-C, Sixth Edition by Stephen G. Kochan

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

An iPhone Fraction Calculator

The next example is a bit more involved, but the concepts from the previous example apply here as well. We do not show all the steps to create this example, but rather give a summary of the steps and an overview of the design methodology. Of course, we also show all the code.

First, let’s see how the application works. Figure 21.17 shows what the application looks like in the simulator just after launching.

Image

Figure 21.17 Fraction calculator after launch

The calculator application allows you to enter fractions by first keying in the numerator, pressing the key labeled Over, and then keying in the denominator. So, ...

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