- Create a new Xcode project with the Single View Application template with the name FoodIndex.
- Click on the initial view controller and embed it in Navigation Controller by clicking on Editor | Embed In | Navigation Controller.
- Change the title of the navigation bar to Nutritions.
- Drag a UITableView, and add it as a subview, and make it cover the screen. The constraints of the table view will look like this:
tableview.trailing = superview.trailing tableview.leading = superview.leading tableview.top = superview.top tableview.trailing = superview.trailing
- Then, drag a UITableViewCell to the table view. Open the Attributes Inspector tab and change the Style to Subtitle and the Identifier to cell.
- Right-click on the table ...