My Account Log in

1 option

Coding iPhone apps for kids : a playful introduction to swift / by Gloria Winquist and Matt McCarthy.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Winquist, Gloria, author.
McCarthy, Matt (Software engineer), author.
Language:
English
Subjects (All):
Swift (Computer program language)--Juvenile literature.
Swift (Computer program language).
iPhone (Smartphone)--Programming--Juvenile literature.
iPhone (Smartphone).
Application software--Development--Juvenile literature.
Application software.
Physical Description:
1 online resource (xxi, 312 pages) : illustrations
Edition:
1st edition
Place of Publication:
San Francisco : No Starch Press, [2017]
System Details:
text file
Summary:
Apple's Swift is a powerful, beginner-friendly programming language that anyone can use to make cool apps for the iPhone or iPad. In Coding iPhone Apps for Kids , you'll learn how to use Swift to write programs, even if you've never programmed before. You'll work in the Xcode playground, an interactive environment where you can play with your code and see the results of your work immediately! You'll learn the fundamentals of programming too, like how to store data in arrays, use conditional statements to make decisions, and create functions to organize your code--all with the help of clear and patient explanations. Once you master the basics, you'll build a birthday tracker app so that you won't forget anyone's birthday and a platform game called Schoolhouse Skateboarder with animation, jumps, and more! As you begin your programming adventure you'll learn how to: Build programs to save you time, like one that invites all of your friends to a party with just the click of a button! Program a number-guessing game with loops to make the computer keep guessing until it gets the right answer Make a real, playable game with graphics and sound effects using SpriteKit Challenge players by speeding up your game and adding a high-score system Why should serious adults have all the fun? Coding iPhone Apps for Kids is your ticket to the exciting world of computer programming. Covers Swift 3.x and Xcode 8.x. Requires OS X 10.11 or higher.
Contents:
Intro
Title Page
Copyright Page
About the Authors
About the Technical Reviewer
About the Illustrator
Brief Contents
Contents in Detail
Acknowledgments
Introduction
Who Should Read This Book?
What's in This Book?
The Companion Website
Have Fun!
Part 1: Xcode and Swift
1 Hello, World!
Installing Xcode, Your Code Editor
Your First App!
Introducing the Storyboard
Adding User Interface Elements with the Object Library
Saving Your Work
Running the App on a Real Device
What You Learned
2 Learning to Code in a Playground
Constants and Variables
When to Use Constants vs. Variables
Naming Constants and Variables
Data Types
Declaring Data Types
Common Data Types
Type Inference
Transforming Data Types with Casting
Operators
Order of Operations
Ordering Operations with Parentheses
Compound Assignment Operators
3 Making Choices
Boolean Expressions
Is Equal and Is Not Equal
Greater Than and Less Than
Compound Boolean Expressions
Conditional Statements
if Statements
switch Statements
4 Writing Code That Loops
Open the Debug Area
Looping Through Ranges and Collections with for-in
Say Hello!
Say Good Morning!
Testing Conditions with while Loops
Guess My Number
Shrink Away
Which Loop to Use?
Nesting and Scope
Nesting Blocks of Code
Constant and Variable Scope
5 Keeping Your Programs Safe with Optionals
What Is an Optional?
Creating Optionals
Unwrapping Optionals
A Special Kind of Operator: ??
6 Storing Collections in Dictionaries and Arrays
Keeping Things in Order with Arrays
Using Mutable and Immutable Arrays
Using Type Inference
Accessing Items in an Array
Watching the Range.
Adding Items to an Array
Combining Arrays
Removing Items from an Array
Replacing Items in an Array
Using Array Properties
Looping Over an Array
Dictionaries Are Key!
Initializing a Dictionary
Accessing Values in a Dictionary
Adding Items to a Dictionary
Removing Items from a Dictionary
Replacing Items in a Dictionary
Using Dictionary Properties
Looping Over a Dictionary
7 Functions are a Party, and You're Invited
In with the Input, Out with the Output
Writing a Custom Function
Functions Do Even More with Input Parameters
Making Party Invitations
Inviting All Your Friends at Once
Messaging Your Guests
Argument Labels
Adding a Custom Argument Label
Removing an Argument Label
Return Values
Which Is the Bigger Box?
Conditional Returns
8 Custom Classes and Structs
Making a Class
Writing a Class Definition
Storing Information in Properties
Creating an Instance of a Class
Accessing the Properties of a Class
Customizing Each Cake with Initializers
Adding a Birthday Greeting Method
Writing a Helper Method
A Special Property Called self
Class Inheritance
Creating a Superclass
Creating a Subclass
Detecting the Data Type by Typecasting
Refining the Data Type by Downcasting
Value Types and Reference Types
Using Structs
Part 2: Birthday Tracker
9 Creating Buttons and Screens on the Storyboard
An Outline of Your App
Creating a New Xcode Project
Adding the App Icon
Displaying Your Friends' Birthdays
Adding the Table View Controller
Adding the Navigation Controller
Adding a Button
Setting Up Control Inputs and Labels
Adding Your Friends' Names and Birthdays
Making Your App Look Perfect on Every Device with Auto Layout.
Adding Save and Cancel Buttons
10 Adding a Birthday Class and Handling User Input
The Birthday Class
Creating a New File
Writing the Birthday Class
Programming User Input
Creating the Add Birthday View Controller
Connecting Code to the Input Controls
Connecting Your Code to the Storyboard
Setting a Maximum Birthdate
Saving a Birthday
Hooking Up the Save Button
Reading Text from a Text Field
Getting a Date from a Date Picker
Creating a Birthday
Adding the Cancel Button
11 Displaying Birthdays
Making the Birthday List
Creating the Birthdays Table View Controller
Adding Cells to the Table View
Setting Up the Birthdays Table View Controller
Displaying Birthdays in a Table View
Putting It All Together
Delegation
Connecting the Two Controllers by Setting a Delegate
12 Saving Birthdays
Storing Birthdays in a Database
The Birthday Entity
The Birthday Attributes
The Application Delegate
Code Cleanup
Adding More Features to Our App
Alphabetizing Birthdays
Removing Birthdays
13 Getting Birthday Notifications
The User Notifications Framework
Registering for Local Notifications
Scheduling a Notification
Removing a Notification
Part 3: Schoolhouse Skateboarder
14 Setting the Stage
Where Do I Get Art and Sound Effects?
Making Games with Xcode's SpriteKit
Creating the Game Project
Adding Images
The Scenery: Displaying a Background Image
How It Will Be Played: Screen Orientation
Sizing Images for Different Screen Resolutions
15 Making Schoolhouse Skateboarder a Real Game
Our Hero, the Skateboarder
Creating a Skater Sprite Class
Importing SpriteKit
Adding Custom Properties to the Skater Class.
Creating an Instance of the Skater in the Scene
Setting Up the Skater
Seeing the Skater on the Screen
Understanding SpriteKit's Debugging Information
Hittin' the Bricks
Creating Sidewalk Bricks
Updating Sidewalk Bricks
Filling the Screen with Bricks
Leaving Gaps to Jump
The Game Loop
Tracking the Update Time
Calculating Elapsed Time for Each Update
Adjusting Scroll Speed Using the Elapsed Time
Updating the Bricks
Up, Up, and Away-Making the Skater Jump
Using a Tap Gesture Recognizer
Simulating Gravity in a Simple Way
Checking for Landings
16 Using the Spritekit Physics Engine
Setting Up the Physics World
Physics Bodies
Giving Shape to the Physics Bodies
Setting Properties of Physics Bodies
Giving the skater Sprite a Physics Body
Adding Physics Bodies to Bricks
Contacts and Collisions
Handling Contacts and Collisions
Responding to Contacts
Applying Forces to Physics Bodies
Starting and Ending the Game
Starting the Game
Ending the Game
17 Adjusting Difficulty, Collecting Gems, and Keeping Score
Speeding Things Up
Adding Multilevel Platforms
Defining Multiple Brick Levels
Changing How Bricks Spawn
Adding Gems to Collect
Spawning and Tracking the Gems
Deciding When to Spawn a Gem
Removing Gems
Updating Gems
Collecting Gems
Adding Scoring and Labels
Creating Labels
Tracking the Score
Updating Labels
Updating the Player's Score
Making the Gems Valuable
Tracking the High Score
Tweaking the Gameplay
18 Game State, Menus, Sounds, and Special Effects
Tracking Game State
Adding a Menu System
Creating the MenuLayer Class
Displaying the Menu Layers When Needed
Removing the Menu Layer
Making Sounds
Adding the Sound Files.
Playing the Sounds at the Right Time
Shooting Sparks
Resources
Troubleshooting Errors
Apple Documentation
Xcode Keyboard Shortcuts
iOS Simulator Keyboard Shortcuts
Xcode Versions
Index.
Notes:
Includes bibliographical references and index.
Description based on print version record.
Includes index.
ISBN:
9781492020370
1492020370
9781593278373
1593278373
9781593277567
1593277563
OCLC:
980871613

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Library Catalog Using Articles+ Library Account