There is an updated version of this course available, created for Swift 5, iOS 14, Xcode 12. View Latest Version

Your First Swift 4 & iOS 11 App

Sep 19 2017 · Video Course (2 hrs, 39 mins) · Beginner

If you're a complete beginner to iOS development and wondering how to get started, this is the course for you!

Version

  • Swift 4, iOS 11, Xcode 9

Basic Controls

Introduction

2:36 Free

Learn about the first app you'll build - a simple but fun game called Bull's Eye - and get a preview of all the things you'll learn throughout this section.

1

Make a programming to-do list of all the things you'll need to do to build the game. This helps build a good programming practice of gathering requirements first!

2

Learn how to add a button to the app and connect it to some Swift 4 code that prints a message to the console.

3

Alerts

3:17 Free

Learn how to make the app display a popup alert when you tap a button.

4

Solving Problems

5:05 Free

Learn how to solve problems beginners frequently run into.

5

Practice connecting an action performs on a button - such as a tap - to some Swift code that you write.

6

Learn how apps actually work under the hood.

7

Learn how to convert your app from portrait to landscape mode.

8

Practice adding basic controls like sliders, buttons, and labels into your app by creating the basic layout for the Bulls-eye game.

9

Conclusion

0:36 Free

Let's review where you are with your programming to-do list, and discuss what's next.

10

Outlets

Introduction

1:02 Free

Let's review what you'll be learning in this section, and why it's important.

11

Learn the basics of object-oriented programming, so you can better understand the Swift 4 code you are writing.

12

Learn how to detect when the user moves the slider, and how to store the result in a variable. Along the way, you'll learn the basics of using Swift 4 strings.

13

In this challenge, you'll come across your first bug - and you'll try and fix it.

14

Connecting Outlets

5:18 Free

Learn about one of the fundamental techniques in iOS development: connecting views like buttons or labels from your storyboard to outlets in your code.

15

Writing Methods

6:15 Free

Learn how to add multiple rounds into Bulls-Eye, and how to write your own methods along the way.

16

Get some more practice connecting views from your storyboard to outlets that you can access from Swift code.

17

Conclusion

0:35 Free

Let's review where you are with your programming to-do list, and discuss what's next.

18

Coding Basics

Introduction

0:50 Free

Let's review what you'll be learning in this section, and why it's important.

19

See if you can figure out an algorithm to calculate the positive difference between the target value and the slider value.

20

Implement the algorithm you just designed to calculate the difference using Swift.

21

Try improving the algorithm to calculate the difference so it is written in less lines of code.

22

Finalize the difference algorithm and score calculation, and learn about an important Swift concept: the difference between variables and constants.

23

Type Inference

2:19 Free

Add the ability to track the user's total score, and learn about something cool called Swift type inference along the way.

24

Practice some coding basics by modifying Bull's Eye to display the player's total score.

25

It's time for an even bigger challenge: modifying Bull's Eye to keep track and report the current round of the game.

26

Adding Polish

4:29 Free

Polish the app by telling the player how well they did each round.

27

Get some final practice with coding basics by giving the user bonus points if they are very close to the target.

28

Conclusion

0:50 Free

Let's review where you are with your programming to-do list, and discuss what's next.

29

Coding Practice

Introduction

0:55 Free

Let's review what you'll be learning in this section, and why it's important.

30

Try this challenge to make sure you understand the difference between local and instance variables, which is a common point of confusion for beginners to programming.

31

Closures

4:21 Free

Learn how to use an important construct in Swift called closures, which you often use to provide a block of code that is executed some time in the future.

32

Get some more coding practice by implementing the "Start Over" button in Bull's Eye.

33

Learn how to add multiple screens to your iOS apps, by adding an About screen into Bull's Eye.

34

Practice adding multiple screens into your iOS apps, by adding an About the Author screen into Bull's Eye.

35

Conclusion

0:31 Free

Let's review where you are with your programming to-do list, and discuss what's next.

36

Styling the App

Introduction

1:01 Free

Let's review what you'll be learning in this section, and why it's important.

37

Learn how to add a background image to your app, and style labels.

38

In this challenge, you'll style the rest of the labels in Bull's Eye.

39

Learn how to style buttons to use custom images, and style sliders to use custom thumb images.

40

In this challenge, you'll get practice with styling your apps by improving the look of the About screen.

41

Web Views

3:42 Free

Learn how to add web views into your apps to display web pages.

42

Learn how to use Auto Layout, a core UIKit technology that makes it easy to support many different screen sizes.

43

In this challenge, you'll get practice with auto layout by setting up Auto Layout on the About screen.

44

Learn how to set up your app icon, and change the display name of yoru app.

45

Learn how to run your app on your own physical device.

46

Conclusion

1:11 Free

Let's review where you are with your programming to-do list, and discuss what's next.

47

Version history

iOS 14, Swift 5, Xcode 12

Dec 15 2020

iOS 13, Swift 5, Xcode 11

Sep 3 2019

iOS 12, Swift 4, Xcode 10

Jul 24 2018

iOS 11, Swift 4, Xcode 9 (Selected)

Sep 19 2017

iOS 10, Swift 3, Xcode 8

Nov 7 2016

Swift 2

Sep 1 2015

Contributors

Comments