UIKit is an important framework for iOS app development. It contains views and controls that allow developers to display data and interfaces to users. This unit introduces the basic UIKit components like labels, image views, buttons and how to configure them. It also covers concepts like collections, loops and functions that are useful for working with data in apps. The latter part of the unit focuses on using Auto Layout and stack views to build precise and adaptive user interfaces.
2. Introduction to UIKit
Unit 2
Swift Lessons
Strings
Functions
Structures
Classes, Inheritance
Collections
Loops
SDK Lessons
Introduction to UIKit
Displaying Data
Controls in Action
Auto Layout and Stack Views
3. Strings
Lesson 2.1
What You'll Learn
How to declare a String
How to compare two strings
How to access particular characters within a
string
Vocabulary
case sensitivity
concatenation
equality
escape character
index
literal
range
4. Functions
Lesson 2.2
What You'll Learn
How to write your own functions, with or
without a return type
How to specify input parameters for your
functions
How to return multiple values when necessary
How to customize the way your functions are
called
How to provide default parameter values to a
function
Vocabulary
argument label
parameter
return type
return value
5. Structures
Lesson 2.3
What You'll Learn
How to create a custom structure
How to define properties on a structure
How to add methods, or functions, to a
structure
Vocabulary
computed property
function
initializer
initialization
instance method
memberwise initializer
method
6. Classes, Inheritance
Lesson 2.4
What You'll Learn
The difference between a structure and a
class
How to define a class
The concept and importance of inheritance
How to write a class that inherits from
another class
How to use a class to manage complex states
in an application
Vocabulary
base class
class
inheritance
state
subclass
superclass
7. Collections
Lesson 2.5
What You'll Learn
How to declare constant and variable
collections
How to add and remove values from arrays
and dictionaries
How to choose the appropriate collection type
Vocabulary
array
dictionary
8. Loops
Lesson 2.6
What You'll Learn
How to step through each value of a
collection using a for loop
How to iterate through a range of values
How to write a loop that continues until a
condition is no longer true
Vocabulary
for loop
for-in loop
while loop
9. Introduction to UIKit
Lesson 2.7
What You'll Learn
Why UIKit is such an important part of app
development
The name and appearance of five common
views in apps
The name and functionality of five controls in
apps
Where to find out more
Vocabulary
button
control event
date picker
image view
label
navigation bar
scroll view, segmented control
10. Displaying Data
Lesson 2.8
What You'll Learn
How to configure views using Interface
Builder
How to customize a label
How to customize an image view
Vocabulary
aspect ratio
clipping
content mode
dynamic data
frame
static data
11. Controls in Action
Lesson 2.9
What You'll Learn
How to use a button to execute code
How to use a switch to execute code
How to access the value of a switch
How to use a slider to execute code
How to access the value of a slider
How to use a text field
How to access the value of a text field
Vocabulary
gesture recognizer
13. Auto Layout and Stack Views
Lesson 2.10
What You'll Learn
How to use Auto Layout to build precise views
How to create constraints
How to use stack views to simplify Auto
Layout
Vocabulary
constraint
sibling
size class
stack view