We are going to use Auto Layout to set up constraints for our main menu of the Food and Me app. We will not be using Auto Layout for the entire application for the sake of simplicity, but we will be covering all of the necessary elements to learn how to use the new Auto Layout.
First, let's create a new project. Open Xcode and select Create a new Xcode project on the welcome screen (or navigate to File | New | Project from the menu bar if the welcome screen does not appear). Select Single View Application and then click on Next.
Fill in the template options as follows:
Food and Me
Organization Name: Enter the name of your organization or company
Company Identifier: Input your desired identifier that will be used on the developer portal, using reverse domain notation
Class Prefix: Leave this option empty
Xcode creates a standard project for us, including the app delegate, a single view controller, a storyboard file, and an asset catalog for...