Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
iOS 12 Programming for Beginners

You're reading from   iOS 12 Programming for Beginners An introductory guide to iOS app development with Swift 4.2 and Xcode 10

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Packt
ISBN-13 9781789348668
Length 692 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Craig Clayton Craig Clayton
Author Profile Icon Craig Clayton
Craig Clayton
Arrow right icon
View More author details
Toc

Table of Contents (27) Chapters Close

Preface 1. Getting Familiar with Xcode 2. Building a Foundation with Swift FREE CHAPTER 3. Building on the Swift Foundation 4. Digging Deeper 5. Digging into Collections 6. Starting the UI Setup 7. Setting Up the Basic Structure 8. Building Our App Structure in Storyboard 9. Finishing Up Our App Structure in Storyboard 10. Designing Cells 11. Getting Started with the Grid 12. Getting Data into Our Grid 13. Getting Started with the List 14. Where Are We? 15. Working with an API 16. Displaying Data in Restaurant Detail 17. Foodie Reviews 18. Working with Photo Filters 19. Understanding Core Data 20. Saving Reviews 21. Universal 22. iMessages 23. Notifications 24. SiriKit 25. Beta and Store Submission 26. Other Books You May Enjoy

Getting started

To download Xcode, launch the App Store on your Mac and then type Xcode into the search bar in the upper-right corner:

This is the screenshot of the App Store and the blurred out information is not important here
For enhanced image quality, download the graphics bundle from https://www.packtpub.com/sites/default/files/downloads/9781789348668_ColorImages.pdf.

Next, click on INSTALL:

This is the screenshot of the App Store and the blurred out information is not important here

Once installed, launch Xcode, and you should see the following Welcome to Xcode screen:

If this is the first time you have launched Xcode, then you will see No Recent Projects in the right-hand panel. If you have previously created projects, then you will see those listed to the right. To get started, we are going to click on Create a new Xcode project in the left-hand panel of the welcome screen. You will see the new project screen, as follows:

Across the top of this screen, you can select one of the following items: iOS, watchOS, tvOS, macOS, and Cross-platform. Since we are creating apps for iOS, make sure that you have iOS selected. Then, choose Single View App and click on Next. Now, you will see an options screen for a new project:

This option screen has the following seven items to complete or choose:

  1. Product Name: The product name is your app. We are going to set ours as ExploringXcode.
  2. Team: The team connects to your Apple account. We are going to ignore this for now, because we do not need the Team for this chapter. If you already have a team set up, leave it as is. We will cover this in greater detail later in this book.
  1. Organization Name: You can set the organization name to your company name, or just use your name.
  2. Organizer Identifier: You will set the organizer identifier to be your domain name in reverse. For example, my website URL is cocoa.academy, and therefore, my identifier is academy.cocoa. Since URLs are unique, it will ensure that no one else will have your identifier. If you do not have a domain, then use your first and last names for now. However, you will eventually have to purchase a domain if you want to submit your app to the Apple Store.
  3. Bundle Identifier: When you create a new project, Apple will combine your Product Name with your Organizer Identifier to create your unique bundle identifier. So, even if 10,000 people create this project, each person will have a different bundle identifier.
  4. Language: Set language to Swift.
  5. Checkboxes: You can uncheck Use Core Data, Include Unit Tests, and Include UI Tests, as these are things that we will not use in this chapter.

Now, select Next, and Xcode will prompt us to save our project. I have a dedicated folder for all my projects, but you can save it on your desktop for easy access.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime