Preface - Introducing iOS 8 (2015)

Introducing iOS 8 (2015)

Preface

Why I Wrote Introducing iOS 8

I wrote this book for people with absolutely no programming experience. Most programming books assume the reader already knows another programming language or has a Computer Science degree. This assumption creates a large barrier to entry and increased confusion for beginners.

Introducing iOS 8 was designed for absolute beginners and serves as your own personal tour guide into the world of iOS programming. This book removes the confusing terms and jargon and replaces them with relatable real-world examples. It uses common occurrences like going to the grocery store, driving in a car, or eating at a restaurant to teach programming. Each chapter will explain concepts in clear, concise, relatable terms.

The goal of this book is to walk you from idea to App Store. This book will teach you the basics of programming, developing apps, and how to release your app to the App Store. No programming experience is required. You will learn to think differently and see the world from a new perspective. This book will give you the tools to change your life and the lives of others. Introducing iOS 8 removes the jargon and intimidation from programming.

Who Should Read This Book

This book was created specifically for absolute beginners. No computer science or programming experience is required. Anyone can do it.

§ This book is for anyone with an idea for an app.

§ This book is for anyone who loves their iPhone or iPad a little too much.

§ This book is for people who are interested in changing their life or the lives of others.

§ This book is for people who want to understand the power of technology and how to harness it.

People from all different walks of life have used this content to make apps. Here are just some of the people I have taught to make apps:

§ Designers

§ Product managers

§ Students

§ Grocery clerks

§ Baristas

§ Stay-at-home moms

§ Grandmothers

§ Personal assistants

§ Recruiters

§ Investment bankers

§ Doctors

§ Lawyers

§ Construction workers

§ Bank tellers

You can do it, too, and I am here to help.

Navigating This Book

This book is organized to walk you from absolute beginner to your own app in the App Store. This book is best read from cover to cover in chronological order. If you do have some programming experience, I suggest reading from the beginning, as Swift may still be different from the languages you already know. This book covers Swift, a new language from Apple released in 2014. Swift is a young language, and will grow and evolve. Check for book updates and errata on AppSchool.com/book.

TIP

You can register as an official Apple developer and learn more about Swift at http://developer.apple.com.

If you read a chapter per day, you’ll have an app submitted to the App Store in less than two weeks. Hold on to this book as a reference after you have read through it from beginning to end. Each chapter will serve as a quick refresher when you come back to a particular subject. Some of the buttons and screenshots may differ based on your version of OS X. All screenshots in this book are taken using OS X Yosemite (10.10), but differences will be described for those using OS X Mavericks (10.9). Also, be sure to watch your capitalization and spelling when programming with this book. Capitalization and spelling matter!

Chapter 1, Getting Started

Covers the basics of the App Store, setting up your Path to Success, and installing Xcode on your computer.

Chapter 2, Introduction to Programming

Covers the basics of programming, including Model-View-Controller, and you will build your very first app.

Chapter 3, Diving into Swift

Learn the basics of Swift, variable types, collections, and loops, and build a Tip Calculator.

Chapter 4, Diving Deeper

Learn about methods, objects, and classes, and build a Race Car app.

Chapter 5, Building Multiscreen Apps

Covers view controllers, table views, and navigation controllers. Build your very own Passport app.

Chapter 6, Next Steps: Debugging, Documentation, and App Icons

How to fix issues, learn from the documentation, and improve the Passport app.

Chapter 7, Devices and Auto Layout

How to make apps for different screen sizes using Auto Layout. Improve the Passport app.

Chapter 8, Maps and Location

Learn to use the GPS to find a user’s location, create maps, and plot points. Build upon the Passport app.

Chapter 9, Camera, Photos, and Social Networks

Accessing the camera, viewing photos and videos, and adding Facebook and Twitter sharing to your app. Create an app called Selfie for taking front-facing photos.

Chapter 10, Running on a Device

How to run your apps on your iOS device. Build upon the Selfie app.

Chapter 11, Submitting to the App Store

How to set up the required contracts, create an App Store listing, and submit your app.

Chapter 12, Managing and Marketing Your App

How to manage your app once it is on the App Store, and how to update and market your app.

Appendix A

What is Objective-C, why you should know it, and how to read it.

How This Book Works and What You Need for This Book

Each lesson in this book is broken up into two distinct parts, lecture and exercise. The lecture portion will explain the terms and theories using real-world examples. In the exercise portion, you will learn by developing real-world apps like a Tip Calculator.

You will need a few items to get the most out of this book.

An Apple computer

You must have a Mac computer to develop for iOS. You cannot use a PC or iPad. Your Mac must also be running OSX Mavericks (10.9) or newer. If you do not already have a Mac, you can purchase one at http://www.apple.com. If you are on a tight budget, you can buy a refurbished model directly from Apple.

An iOS device

To build iOS apps, you must have an iOS device. This can be an iPhone, iPod Touch, or iPad. Your iOS device must be running iOS 7 or newer. If you do not already have an iOS device, you can purchase one at http://www.apple.com. If you are on a tight budget, you can buy arefurbished model directly from Apple.

Dedicated workspace

Learning to make apps is a different type of learning compared to learning history. Programming forces your brain to think differently and understand new perspectives. This type of learning requires a quiet area with no distractions. When you are reading this book, close your web browser, Facebook, Twitter, and Instagram. Dedicate a specific time period of your day just to programming. Only allow yourself to have Xcode open and dedicate learning time to learning.

Positive attitude

Learning to develop can be tough, but it can be incredibly rewarding when you create something people love or add value to someone’s life. Times will get tough; remember: you can do it, and nothing is impossible. Stick with it and think outside the box.

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic

Indicates new terms, URLs, email addresses, filenames, and file extensions.

Constant width

Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.

Constant width bold

Shows commands or other text that should be typed literally by the user.

Constant width italic

Shows text that should be replaced with user-supplied values or by values determined by context.

TIP

This icon signifies a tip, suggestion, or general note.

WARNING

This icon indicates a warning or caution.