Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Swift iOS Programming for Kids
Swift iOS Programming for Kids
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. What is Programming?
The Swift programming language
Why is programming important?
What you will learn from this book
Summary
2. Getting Set Up
Xcode
Downloading Xcode
Playground
Summary
3. Say Hello
What is a console application?
Setting up our first Xcode playground
Creating the playground
Saving our playground
Removing what is unnecessary
A quick look at the Xcode interface
Creating our program
A quick look at Xcode errors
Xcode and autocompletion
Summary
4. Favorite Things
Variables and constants
Variables
Constants
Summary
5. Factories
String and Int
Double
Summary
6. Making Pizza
How the iPhone runs our program
A simple program without functions
What is a function?
A function can receive some input
A function can be pure
A function can return something
A look at functions in Swift
Making our own function
Summary
7. Toy Bin
Collection types
Array
Dictionary
Optionals
Summary
8. Smarter Toy Bin
Buttercup
Learning the for-in loop
Conditionals
Learning for-loops and if-statements
Append method
Find the buttercup
Summary
9. Making Some Friends
OOP
Modeling real-world objects
Modeling a mug
Modeling a person
Our first class
Instance properties
Instance methods
Making objects interact with each other
Adding more classes to the mix
Summary
10. Pokémon Battle
Pokémon type
Initializer syntax
Functions and types
Charizard versus pikachu
Hug function
Summary
11. Simon Says
GUI
Laying out a view
Setting up a new iOS project
Xcode's Interface Builder and storyboards
Simon says
Designing the interface
Summary
12. Starry Night
A deep dive into UI in iOS
The view hierarchy
Frames and bounds
Auto Layout
The UIViewController life cycle
Starry Night
Designing the UI
Adding functionality to our interface
Summary
13. Space Pizza Delivery
Space Pizza
Xcode
Enumerations
Switch statement
Planet
Type property
Space junk
Pizza service
Property observers
Storyboard and view controller
Hooking everything up
Space junk buttons
Updating the cost
Summary
14. Movie Night - iOS App
How to create a list
The data source
The delegate
UITableViewController
Our final application: Movie Night
The interface
Displaying items in our list
Dynamically adding items to our list
Deleting items from our list
Persisting our movies
Deploying our application to our iPhone
Summary
← Prev
Back
Next →
← Prev
Back
Next →