Join Todd Perkins for an in-depth discussion in this video Challenge: Create two variables, part of Programming for Non-Programmers with 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,…
Author
Released
12/7/2016- 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
Duration
Views
Related Courses
-
Introduction
-
Welcome1m 9s
-
The finished app59s
-
-
1. Set Up Your Coding Environment
-
Create an Xcode project4m 19s
-
2. Programming Building Blocks: Variables
-
Understanding variables3m 2s
-
Using instance variables7m 40s
-
Enum values4m 29s
-
3. Programming Building Blocks: Methods
-
Understanding methods3m 53s
-
Using methods5m 7s
-
Connect a button to a method5m 48s
-
Challenge: Methods1m 39s
-
Solution: Methods7m 8s
-
-
4. Programming Building Blocks: Conditional Statements
-
Using conditional statements6m 37s
-
Boolean values4m 32s
-
Optionals5m 23s
-
Guard statements5m 38s
-
5. Plan and Prepare the App
-
Customize UI objects6m 59s
-
Place UI objects with pins7m 12s
-
Set up the user interface3m 28s
-
Finish the user interface4m 25s
-
6. Build a Full Application
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Challenge: Create two variables