Download the course materials; this archive contains the presentations, demos, and lab solutions. Please do not distribute these materials outside of your group.
In this lab, you will create a simple tip calculator which you’d then be able to use to split the bill and tip across your friends. You should use the iOS > Application > Single View Application project template in Xcode, because you will only have one screen and one view controller.
Your UI should have the following components:
- A title label that reads “Tip Calculator” – feel free to use a cute font here.
- A text field for the bill amount, and a label that explains what it is.
- A toggle switch that determines whether to round the bill to the nearest dollar, and a label that explains what it is.
- A button that reads “Split Bill”, which, when tapped, calculates the bill amount and tip amount for each person in your party and displays it in a separate label underneath the button.