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

Get Programming in Objective-C, Sixth Edition 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.