Join Todd Perkins for an in-depth discussion in this video Challenge: Create two variables, part of Programming for Non-Programmers: iOS 10 and Swift.
- [Instructor] So, here's a challenge…for you in regard to variables.…Before we get to the challenge,…I want to review what we've looked at in this chapter.…Variables, similar to nouns, are the things of programming.…They're named containers that hold data.…We've looked at variables that hold String values, or text,…variables that hold numbers, variables that are more complex…than that, like the label that we created.…Example code for a variable is right here.…
We have the variable key word which says create a variable,…the name of the variable, which, in this case, is score,…the data type of the variable declared with a colon,…in this case it's Int, short for integer, a whole number.…And we change the value of a variable using the equal sign.…So, this variable is set to be the value of the number 100.…We talked about rules for naming variables,…start with a lower case letter,…use letters, numbers, and underscores, use camelCase,…and don't use any reserved words.…
So, now on to the challenge.…The challenge is to create two variables,…
- 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.