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 13 Programming for Beginners

You're reading from   iOS 13 Programming for Beginners Get started with building iOS apps with Swift 5 and Xcode 11

Arrow left icon
Product type Paperback
Published in Jan 2020
Publisher Packt
ISBN-13 9781838821906
Length 822 pages
Edition 4th Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Craig Clayton Craig Clayton
Author Profile Icon Craig Clayton
Craig Clayton
Ahmad Sahar Ahmad Sahar
Author Profile Icon Ahmad Sahar
Ahmad Sahar
Arrow right icon
View More author details
Toc

Table of Contents (33) Chapters Close

Preface 1. Section 1: Swift
2. Getting Familiar with Xcode FREE CHAPTER 3. Simple Values and Types 4. Conditionals and Optionals 5. Range Operators and Loops 6. Collection Types 7. Functions and Closures 8. Classes, Structures, and Enumerations 9. Protocols, Extensions, and Error Handling 10. Section 2: Design
11. Setting Up the Basic Structure 12. Building Your App Structure in Storyboard 13. Finishing Up Your App Structure in Storyboard 14. Modifying and Configuring Cells 15. Section 3: Code
16. Getting Started with MVC and Collection Views 17. Getting Data into Collection Views 18. Getting Started with Table Views 19. Getting Started with MapKit 20. Getting Started with JSON Files 21. Displaying Data in a Static Table View 22. Getting Started with Custom UIControls 23. Getting Started with Cameras and Photo Libraries 24. Understanding Core Data 25. Saving and Loading from Core Data 26. Section 4: Features
27. Getting Started with Dark Mode 28. Getting Started with Mac Catalyst 29. Getting Started with SwiftUI 30. Getting Started with Sign In with Apple 31. Testing and Submitting Your App to the App Store 32. Other Books You May Enjoy

Downloading and installing Xcode from the App Store

Before you begin writing iOS Apps, you need to download and install Xcode from the App Store. Perform the following steps:

  1. Open the App Store on your Mac (it's in the Apple menu).
  2. In the search field in the top-right corner, type Xcode and press the Return key.
  3. You should see Xcode in the search results. Click Get and click Install.
  1. If you have an Apple ID, type it in the Apple ID text box. If you don't have one, click the Create Apple ID button and follow the step-by-step instructions to create one:
You can see more information on how to create an Apple ID at this link:
https://support.apple.com/en-us/HT204316#appstore.
  1. Once Xcode has been installed, launch it. You should see the following Welcome to Xcode screen:

If this is the first time you have launched Xcode, you will see No Recent Projects in the right-hand panel. If you have previously created projects, then you will see them listed in the right-hand panel. Click Create a new Xcode project in the left-hand pane.

  1. 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. iOS should already be selected. Then, choose Single View App and click on Next.

  1. You will see an options screen for a new project:


This options screen has the following eight items to complete or choose:

  • Product Name: The name of your app. Enter ExploringXcode in the text field.
  • Team: The Developer Account Team for this project. Leave it as it is for now.
  • Organization Name: The name of your company. Just put your own name here for now.
  • Organization Identifier: Used in conjunction with the Product Name to create a unique identifier for your app on the App Store. Normally, reverse DNS notation is used. Enter com.myname for now.
  • Bundle Identifier: Automatically created by combining your Product Name and your Organization Identifier. Used to uniquely identify your app on the App Store.
  • Language: The programming language to be used. Set this to Swift.
  • User Interface: Set this to Storyboard.
  • Checkboxes: These checkboxes are used to include code for core data, unit tests, and UI tests. Leave them unchecked for now.

Click Next when you're done.

  1. Choose a location to save your project, such as the Desktop or Documents folder, and click Create:
  1. If you see a dialog box saying No author information was supplied by the version control system, click Fix.
The reason why you see this dialog box is because Source Control checkbox is ticked. Apple recommends that Source Control be turned on. To learn more about version control and Git, see this link: https://git-scm.com/video/what-is-version-control.
  1. You will see the Source Control preference screen as follows:

Enter the following information:

  • Author Name: Your own name
  • Author Email: Your email address
  1. The Xcode main window will appear.

Fantastic! You have now successfully downloaded and installed Xcode, and in the next section, we will study the Xcode user interface.

You have been reading a chapter from
iOS 13 Programming for Beginners - Fourth Edition
Published in: Jan 2020
Publisher: Packt
ISBN-13: 9781838821906
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