Computing the Tip
Now, let’s add some logic for computing the tip, total price, and price of the meal per person.
Add the following code just below your @synthesize directives in TiptacularViewController.m:
As you can see, you get the values from the text fields, use them to compute the tip totals, and update the display labels with the computed values. Some parts of the code require a little more explanation, though:
• Notice how you can mix and match dot-syntax with messaging syntax. On the first line of code, you access checkAmountTextField’s ...