Join Todd Perkins for an in-depth discussion in this video Challenge: Build a clicker app, part of Programming for Non-Programmers with iOS 10 and Swift.
(cymbals hum)…- [Teacher] As we wrap up this chapter,…I have a challenge for you…to create an app using conditional statements.…Before we get into the challenge,…I want to review what conditional statements are.…They are if/then statements.…In the if part of it, a condition…is evaluated as true of false.…The then part of the if/then statement…is a block of code that is executed…depending on the result.…If the statement is evaluated as true,…the if block runs.…
And you can have an else block…that runs if the statement is evaluated as false.…We've also talked about optionals and guard statements.…We're going to see how those apply…later on when we create our calculator,…but for this challenge,…I'm going to leave those out of it.…When you create a conditional statement,…you use the if keyword, and you can optionally…wrap the condition in parentheses.…Then you contain the then code…inside of curly braces.…That runs if the condition is true.…
If the condition is false,…you can optionally run an else statement…following the if statement.…
- Installing Xcode
- Creating an Xcode project
- Configuring the iOS Simulator
- Understanding variables
- Connecting visual objects to variables
- Understanding methods
- Connecting a button to a method
- Using conditional statements
- Setting up the user interface (UI)
- Building a complete iOS app
Skill Level Beginner
1. Set Up Your Coding Environment
Create an Xcode project4m 19s
2. Programming Building Blocks: Variables
3. Programming Building Blocks: Methods
4. Programming Building Blocks: Conditional Statements
5. Plan and Prepare the App
6. Build a Full Application
Next steps3m 11s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.