In this three-part series, I will show you how to use the Table View control in a storyboard application. Together we will create a grocery list application that’ll pass data forward and backward as depicted in the image below.
By the way, I assume you already know how to use the Table View control, if not then read the
The tableView Workshop Series. I also assume you’ve read the Fundamental Storyboarding
The Application Requirements
The Grocery List application we will create in this workshop series will have a Navigation Controller and two scenes: List View Controller and Add ItemView Controller. The List View Controller scene will serve as the application’s launch scene and it will enable the user to perform these tasks:
- View a listing of items, as shown in this image.
- View an item name in an Alert View object, by tapping a row of the Table View control. By the way, an Alert View object is instantiated (created) from the Cocoa-Touch’s UIAlertView class, in code.
- Access the Add Item View Controller scene by tapping the List View Controller scene’s navigation bar’s + button.
The Add Item View Controller scene will look like the first image shown below and it will enable the operator to perform the following tasks:
- Add an item name in the Table View control
- Return to the List View Controller scene.
- If the operator click the navigation bar’s Save button without first entering an item name in the Text Field, the app will display an error message in an Alert View object, as show in the second image below.
In addition to above app requirements, you will learn how to display and remove a checkmark in the fifth row of the Table View control. I’ve kept the application’s requirements short and sweet in order to focus of the main goal of the tutorial series, which is to show you how to use the Table View control in a storyboard application.