Designing the User Interface
For this project, your nib file is called ViewController.xib. You’ll design your interface by selecting this file and laying out the buttons and label as depicted in Figure 21.17. (Of course, feel free to design the interface to your liking.)
Make the connection from each digit button you lay out in your view to the clickDigit: method. Do this by Control-click-dragging each button in turn to the clickDigit: method either in the interface or implementation file for your view controller. Also, for each digit button, in the Inspector pane set the Tag value to the number that corresponds to the button’s title. So, for the digit button labeled 0, set the Tag value to 0, for the digit button labeled 1, set the Tag value ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access